28#include <tqvaluelist.h> 
   30#include <kdatastream.h>  
   31#include <tdelibs_export.h> 
   34class DCOPClientPrivate;
 
   35class DCOPClientTransaction;
 
   37typedef TQValueList<TQCString> QCStringList;
 
   90  static void setServerAddress(
const TQCString &addr);
 
  130  bool isAttached() 
const;
 
  137  bool isAttachedToForeignServer() 
const;
 
  143  bool acceptCalls() 
const;
 
  151  void setAcceptCalls(
bool b);
 
  159  bool qtBridgeEnabled(); 
 
  168  void setQtBridgeEnabled(
bool b);
 
  195  TQCString registerAs( 
const TQCString &appId, 
bool addPID = 
true );
 
  201  bool isRegistered() 
const;
 
  208  TQCString appId() 
const;
 
  243  bool isSuspended() 
const;
 
  255  bool send(
const TQCString &remApp, 
const TQCString &remObj,
 
  256        const TQCString &remFun, 
const TQByteArray &data);
 
  269  bool send(
const TQCString &remApp, 
const TQCString &remObj,
 
  270        const TQCString &remFun, 
const TQString &data);
 
  304  bool call(
const TQCString &remApp, 
const TQCString &remObj,
 
  305        const TQCString &remFun, 
const TQByteArray &data,
 
  306        TQCString& replyType, TQByteArray &replyData,
 
  307        bool useEventLoop, 
int timeout,
 
  314  bool call(
const TQCString &remApp, 
const TQCString &remObj,
 
  315        const TQCString &remFun, 
const TQByteArray &data,
 
  316        TQCString& replyType, TQByteArray &replyData,
 
  317        bool useEventLoop, 
int timeout);
 
  322  bool call(
const TQCString &remApp, 
const TQCString &remObj,
 
  323        const TQCString &remFun, 
const TQByteArray &data,
 
  324        TQCString& replyType, TQByteArray &replyData,
 
  325        bool useEventLoop=
false);
 
  355  int callAsync(
const TQCString &remApp, 
const TQCString &remObj,
 
  356                const TQCString &remFun, 
const TQByteArray &data,
 
  357                TQObject *callBackObj, 
const char *callBackSlot);
 
  395  bool findObject(
const TQCString &remApp, 
const TQCString &remObj,
 
  396        const TQCString &remFun, 
const TQByteArray &data,
 
  397        TQCString &foundApp, TQCString &foundObj,
 
  398        bool useEventLoop, 
int timeout);
 
  404  bool findObject(
const TQCString &remApp, 
const TQCString &remObj,
 
  405        const TQCString &remFun, 
const TQByteArray &data,
 
  406        TQCString &foundApp, TQCString &foundObj,
 
  407        bool useEventLoop=
false);
 
  414  void emitDCOPSignal( 
const TQCString &
object, 
const TQCString &signal,
 
  415                       const TQByteArray &data);
 
  418  void emitDCOPSignal( 
const TQCString &signal, 
const TQByteArray &data);
 
  440  bool connectDCOPSignal( 
const TQCString &sender, 
const TQCString &senderObj,
 
  441                          const TQCString &signal,
 
  442                          const TQCString &receiverObj, 
const TQCString &slot,
 
  449  bool connectDCOPSignal( 
const TQCString &sender, 
const TQCString &signal,
 
  450                          const TQCString &receiverObj, 
const TQCString &slot,
 
  451                          bool Volatile) TDE_DEPRECATED;
 
  470  bool disconnectDCOPSignal( 
const TQCString &sender, 
const TQCString &senderObj,
 
  471                          const TQCString &signal,
 
  472                          const TQCString &receiverObj, 
const TQCString &slot);
 
  478  bool disconnectDCOPSignal( 
const TQCString &sender, 
const TQCString &signal,
 
  479                          const TQCString &receiverObj, 
const TQCString &slot) TDE_DEPRECATED;
 
  496  virtual bool process(
const TQCString &fun, 
const TQByteArray &data,
 
  497               TQCString& replyType, TQByteArray &replyData);
 
  508  DCOPClientTransaction *beginTransaction( );
 
  517  void endTransaction( DCOPClientTransaction *t, TQCString& replyType, TQByteArray &replyData);
 
  528  TQ_INT32 transactionId() 
const;
 
  535  bool isApplicationRegistered( 
const TQCString& remApp);
 
  542  QCStringList registeredApplications();
 
  551  QCStringList remoteObjects( 
const TQCString& remApp, 
bool *ok = 0 );
 
  562  QCStringList remoteInterfaces( 
const TQCString& remApp, 
const TQCString& remObj , 
bool *ok = 0 );
 
  573  QCStringList remoteFunctions( 
const TQCString& remApp, 
const TQCString& remObj , 
bool *ok = 0 );
 
  589  bool receive(
const TQCString &app, 
const TQCString &obj,
 
  590           const TQCString &fun, 
const TQByteArray& data,
 
  591           TQCString& replyType, TQByteArray &replyData);
 
  606  bool find(
const TQCString &app, 
const TQCString &obj,
 
  607        const TQCString &fun, 
const TQByteArray& data,
 
  608        TQCString& replyType, TQByteArray &replyData);
 
  627  static TQCString normalizeFunctionSignature( 
const TQCString& fun );
 
  635  TQCString senderId() 
const;
 
  645  void setDefaultObject( 
const TQCString& objId );
 
  655  TQCString defaultObject() 
const;
 
  668  void setNotifications( 
bool enabled );
 
  678  void setDaemonMode( 
bool daemonMode );
 
  685  void setPriorityCall(
bool);
 
  703  static void setMainClient( 
DCOPClient* mainClient);
 
  710  static DCOPClient* findLocalClient( 
const TQCString &_appId );
 
  715  static void emergencyClose();
 
  722  static const char *postMortemSender();
 
  724  static const char *postMortemObject();
 
  726  static const char *postMortemFunction();
 
  735  static TQCString dcopServerFile(
const TQCString &hostname=0);
 
  742  static TQCString dcopServerFileOld(
const TQCString &hostname=0) TDE_DEPRECATED;
 
  747  static TQCString iceauthPath();
 
  807  void callBack(
int, 
const TQCString&, 
const TQByteArray &);
 
  814  void processSocketData(
int socknum);
 
  819  void processPostedMessagesInternal();
 
  820  void asyncReplyReady();
 
  821  void eventLoopTimeout();
 
  829  void handleAsyncReply(ReplyStruct *replyStruct);
 
  833  bool isLocalTransactionFinished(TQ_INT32 
id, TQCString &replyType, TQByteArray &replyData);
 
  835  bool attachInternal( 
bool registerAsAnonymous = 
true );
 
  837  bool callInternal(
const TQCString &remApp, 
const TQCString &remObj,
 
  838        const TQCString &remFun, 
const TQByteArray &data,
 
  839        TQCString& replyType, TQByteArray &replyData,
 
  840        bool useEventLoop, 
int timeout, 
int minor_opcode);
 
  843  bool callInternal(
const TQCString &remApp, 
const TQCString &remObjId,
 
  844            const TQCString &remFun, 
const TQByteArray &data,
 
  845            ReplyStruct *replyStruct,
 
  846            bool useEventLoop, 
int timeout, 
int minor_opcode);
 
  849  virtual void virtual_hook( 
int id, 
void* data );
 
  851  DCOPClientPrivate *d;
 
Inter-process communication and remote procedure calls for KDE applications.
void blockUserInput(bool block)
Indicates that user input shall be blocked or released, depending on the argument.
void applicationRegistered(const TQCString &appId)
Indicates that the application appId has been registered with the server we are attached to.
void applicationRemoved(const TQCString &appId)
Indicates that the formerly registered application appId has been removed.
void attachFailed(const TQString &msg)
Indicates that the process of establishing DCOP communications failed in some manner.
You must use a proxy if you want to dispatch method calls for object IDs which don't have (yet) a cor...