kdeui
kdcopactionproxy.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
00019 #ifndef __kdcopactionproxy_h__
00020 #define __kdcopactionproxy_h__
00021
00022 #include <dcopobject.h>
00023 #include <dcopref.h>
00024 #include <kdelibs_export.h>
00025
00026 class KActionCollection;
00027 class KAction;
00028
00039 class KDEUI_EXPORT KDCOPActionProxy : public DCOPObjectProxy
00040 {
00041 public:
00047 KDCOPActionProxy( KActionCollection *actionCollection, DCOPObject *parent );
00053 KDCOPActionProxy( DCOPObject *parent );
00057 ~KDCOPActionProxy();
00058
00063 virtual QValueList<KAction *> actions() const;
00068 virtual KAction *action( const char *name ) const;
00069
00080 virtual QCString actionObjectId( const QCString &name ) const;
00081
00088 virtual QMap<QCString,DCOPRef> actionMap( const QCString &appId = QCString() ) const;
00089
00093 virtual bool process( const QCString &obj, const QCString &fun, const QByteArray &data,
00094 QCString &replyType, QByteArray &replyData );
00095
00100 virtual bool processAction( const QCString &obj, const QCString &fun, const QByteArray &data,
00101 QCString &replyType, QByteArray &replyData, KAction *action );
00102 private:
00103 void init( KActionCollection *collection, DCOPObject *parent );
00104
00105 protected:
00106 virtual void virtual_hook( int id, void* data );
00107 private:
00108 class KDCOPActionProxyPrivate;
00109 KDCOPActionProxyPrivate *d;
00110 };
00111
00112 #endif