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 <tdelibs_export.h>
00025
00026 class TDEActionCollection;
00027 class TDEAction;
00028
00039 class TDEUI_EXPORT KDCOPActionProxy : public DCOPObjectProxy
00040 {
00041 public:
00047 KDCOPActionProxy( TDEActionCollection *actionCollection, DCOPObject *parent );
00053 KDCOPActionProxy( DCOPObject *parent );
00057 ~KDCOPActionProxy();
00058
00063 virtual TQValueList<TDEAction *> actions() const;
00068 virtual TDEAction *action( const char *name ) const;
00069
00080 virtual TQCString actionObjectId( const TQCString &name ) const;
00081
00088 virtual TQMap<TQCString,DCOPRef> actionMap( const TQCString &appId = TQCString() ) const;
00089
00093 virtual bool process( const TQCString &obj, const TQCString &fun, const TQByteArray &data,
00094 TQCString &replyType, TQByteArray &replyData );
00095
00100 virtual bool processAction( const TQCString &obj, const TQCString &fun, const TQByteArray &data,
00101 TQCString &replyType, TQByteArray &replyData, TDEAction *action );
00102 private:
00103 void init( TDEActionCollection *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