KHexEdit
clipboardinterface.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef KHE_CLIPBOARDINTERFACE_H
00019 #define KHE_CLIPBOARDINTERFACE_H
00020
00021 #include <QtCore/QObject>
00022
00023 namespace KHE
00024 {
00025
00047 class ClipboardInterface
00048 {
00049 public:
00050 virtual ~ClipboardInterface() {}
00051
00052 public:
00054 virtual void copy() = 0;
00056 virtual void cut() = 0;
00061 virtual void paste() = 0;
00062
00063 public:
00070 virtual void copyAvailable( bool Really ) = 0;
00071 };
00072
00073
00078 template<class T>
00079 ClipboardInterface *clipboardInterface( T *t )
00080 {
00081 return t ? qobject_cast<KHE::ClipboardInterface *>( t ) : 0;
00082 }
00083
00084 }
00085
00086 Q_DECLARE_INTERFACE( KHE::ClipboardInterface, "org.kde.khe.clipboardinterface/1.0" )
00087
00088 #endif