27 #include <tqcstring.h> 28 #include <tqvaluelist.h> 30 #include <kdatastream.h> 31 #include <kdelibs_export.h> 34 class DCOPClientPrivate;
35 class DCOPClientTransaction;
37 typedef 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);
301 bool call(
const TQCString &remApp,
const TQCString &remObj,
302 const TQCString &remFun,
const TQByteArray &data,
303 TQCString& replyType, TQByteArray &replyData,
304 bool useEventLoop,
int timeout);
309 bool call(
const TQCString &remApp,
const TQCString &remObj,
310 const TQCString &remFun,
const TQByteArray &data,
311 TQCString& replyType, TQByteArray &replyData,
312 bool useEventLoop=
false);
342 int callAsync(
const TQCString &remApp,
const TQCString &remObj,
343 const TQCString &remFun,
const TQByteArray &data,
344 TQObject *callBackObj,
const char *callBackSlot);
382 bool findObject(
const TQCString &remApp,
const TQCString &remObj,
383 const TQCString &remFun,
const TQByteArray &data,
384 TQCString &foundApp, TQCString &foundObj,
385 bool useEventLoop,
int timeout);
391 bool findObject(
const TQCString &remApp,
const TQCString &remObj,
392 const TQCString &remFun,
const TQByteArray &data,
393 TQCString &foundApp, TQCString &foundObj,
394 bool useEventLoop=
false);
401 void emitDCOPSignal(
const TQCString &
object,
const TQCString &signal,
402 const TQByteArray &data);
405 void emitDCOPSignal(
const TQCString &signal,
const TQByteArray &data);
427 bool connectDCOPSignal(
const TQCString &sender,
const TQCString &senderObj,
428 const TQCString &signal,
429 const TQCString &receiverObj,
const TQCString &slot,
436 bool connectDCOPSignal(
const TQCString &sender,
const TQCString &signal,
437 const TQCString &receiverObj,
const TQCString &slot,
438 bool Volatile) KDE_DEPRECATED;
457 bool disconnectDCOPSignal(
const TQCString &sender,
const TQCString &senderObj,
458 const TQCString &signal,
459 const TQCString &receiverObj,
const TQCString &slot);
465 bool disconnectDCOPSignal(
const TQCString &sender,
const TQCString &signal,
466 const TQCString &receiverObj,
const TQCString &slot) KDE_DEPRECATED;
483 virtual bool process(
const TQCString &fun,
const TQByteArray &data,
484 TQCString& replyType, TQByteArray &replyData);
495 DCOPClientTransaction *beginTransaction( );
504 void endTransaction( DCOPClientTransaction *t, TQCString& replyType, TQByteArray &replyData);
515 TQ_INT32 transactionId()
const;
522 bool isApplicationRegistered(
const TQCString& remApp);
529 QCStringList registeredApplications();
538 QCStringList remoteObjects(
const TQCString& remApp,
bool *ok = 0 );
549 QCStringList remoteInterfaces(
const TQCString& remApp,
const TQCString& remObj ,
bool *ok = 0 );
560 QCStringList remoteFunctions(
const TQCString& remApp,
const TQCString& remObj ,
bool *ok = 0 );
576 bool receive(
const TQCString &app,
const TQCString &obj,
577 const TQCString &fun,
const TQByteArray& data,
578 TQCString& replyType, TQByteArray &replyData);
593 bool find(
const TQCString &app,
const TQCString &obj,
594 const TQCString &fun,
const TQByteArray& data,
595 TQCString& replyType, TQByteArray &replyData);
614 static TQCString normalizeFunctionSignature(
const TQCString& fun );
622 TQCString senderId()
const;
632 void setDefaultObject(
const TQCString& objId );
642 TQCString defaultObject()
const;
655 void setNotifications(
bool enabled );
665 void setDaemonMode(
bool daemonMode );
672 void setPriorityCall(
bool);
690 static void setMainClient(
DCOPClient* mainClient);
697 static DCOPClient* findLocalClient(
const TQCString &_appId );
702 static void emergencyClose();
709 static const char *postMortemSender();
711 static const char *postMortemObject();
713 static const char *postMortemFunction();
722 static TQCString dcopServerFile(
const TQCString &hostname=0);
729 static TQCString dcopServerFileOld(
const TQCString &hostname=0) KDE_DEPRECATED;
734 static TQCString iceauthPath();
745 void applicationRegistered(
const TQCString& appId );
754 void applicationRemoved(
const TQCString& appId );
764 void attachFailed(
const TQString &msg);
783 void blockUserInput(
bool block );
794 void callBack(
int,
const TQCString&,
const TQByteArray &);
801 void processSocketData(
int socknum);
806 void processPostedMessagesInternal();
807 void asyncReplyReady();
808 void eventLoopTimeout();
816 void handleAsyncReply(ReplyStruct *replyStruct);
820 bool isLocalTransactionFinished(TQ_INT32
id, TQCString &replyType, TQByteArray &replyData);
822 bool attachInternal(
bool registerAsAnonymous =
true );
824 bool callInternal(
const TQCString &remApp,
const TQCString &remObj,
825 const TQCString &remFun,
const TQByteArray &data,
826 TQCString& replyType, TQByteArray &replyData,
827 bool useEventLoop,
int timeout,
int minor_opcode);
830 bool callInternal(
const TQCString &remApp,
const TQCString &remObjId,
831 const TQCString &remFun,
const TQByteArray &data,
832 ReplyStruct *replyStruct,
833 bool useEventLoop,
int timeout,
int minor_opcode);
836 virtual void virtual_hook(
int id,
void* data );
838 DCOPClientPrivate *d;
Inter-process communication and remote procedure calls for KDE applications.
You must use a proxy if you want to dispatch method calls for object IDs which don't have (yet) a cor...