dcopclient.h
562 QCStringList remoteInterfaces( const TQCString& remApp, const TQCString& remObj , bool *ok = 0 );
573 QCStringList remoteFunctions( const TQCString& remApp, const TQCString& remObj , bool *ok = 0 );
void setDaemonMode(bool daemonMode)
Tells the dcopserver to treat the client as daemon client, not as regular client.
Definition dcopclient.cpp:1348
QCStringList remoteFunctions(const TQCString &remApp, const TQCString &remObj, bool *ok=0)
Retrieves the list of functions of the remote object remObj of application remApp.
Definition dcopclient.cpp:1320
void endTransaction(DCOPClientTransaction *t, TQCString &replyType, TQByteArray &replyData)
Sends the delayed reply of a function call.
Definition dcopclient.cpp:2129
TQCString appId() const
Returns the current app id or a null string if the application hasn't yet been registered.
Definition dcopclient.cpp:1036
void setQtBridgeEnabled(bool b)
Specify whether Qt objects of the application should be accessible via DCOP.
Definition dcopclient.cpp:978
DCOPClientTransaction * beginTransaction()
Delays the reply of the current function call until endTransaction() is called.
Definition dcopclient.cpp:2099
bool isApplicationRegistered(const TQCString &remApp)
Checks whether remApp is registered with the DCOP server.
Definition dcopclient.cpp:1262
void emitDCOPSignal(const TQCString &object, const TQCString &signal, const TQByteArray &data)
Emits signal as DCOP signal from object object with data as arguments.
Definition dcopclient.cpp:2179
QCStringList registeredApplications()
Retrieves the list of all currently registered applications from dcopserver.
Definition dcopclient.cpp:1276
bool disconnectDCOPSignal(const TQCString &sender, const TQCString &senderObj, const TQCString &signal, const TQCString &receiverObj, const TQCString &slot)
Disconnects a DCOP signal.
Definition dcopclient.cpp:2227
QCStringList remoteInterfaces(const TQCString &remApp, const TQCString &remObj, bool *ok=0)
Retrieves the list of interfaces of the remote object remObj of application remApp.
Definition dcopclient.cpp:1304
TQ_INT32 transactionId() const
Test whether the current function call is delayed.
Definition dcopclient.cpp:2120
static TQCString dcopServerFileOld(const TQCString &hostname=0) TDE_DEPRECATED
Definition dcopclient.cpp:323
bool send(const TQCString &remApp, const TQCString &remObj, const TQCString &remFun, const TQByteArray &data)
Sends a data block to the server.
Definition dcopclient.cpp:1089
bool isRegistered() const
Returns whether or not the client is registered at the server.
Definition dcopclient.cpp:1030
bool isAttachedToForeignServer() const
Returns whether the client is attached to a server owned by another user.
Definition dcopclient.cpp:957
TQCString senderId() const
Returns the appId of the last application that talked to us.
Definition dcopclient.cpp:1083
static DCOPClient * findLocalClient(const TQCString &_appId)
Look for the given client only in this process.
Definition dcopclient.cpp:99
int callAsync(const TQCString &remApp, const TQCString &remObj, const TQCString &remFun, const TQByteArray &data, TQObject *callBackObj, const char *callBackSlot)
Performs a asynchronous send with receive callback.
Definition dcopclient.cpp:1830
bool isAttached() const
Returns whether or not the client is attached to the server.
Definition dcopclient.cpp:949
bool acceptCalls() const
Returns whether the client handles incoming calls.
Definition dcopclient.cpp:962
bool call(const TQCString &remApp, const TQCString &remObj, const TQCString &remFun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData, bool useEventLoop, int timeout, bool forceRemote)
Performs a synchronous send and receive.
Definition dcopclient.cpp:1786
int socket() const
Returns the socket fd that is used for communication with the server.
Definition dcopclient.cpp:1042
void setNotifications(bool enabled)
Enables / disables the applicationRegistered() / applicationRemoved() signals.
Definition dcopclient.cpp:1336
static void setMainClient(DCOPClient *mainClient)
Sets the application's main dcop client.
Definition dcopclient.cpp:604
void blockUserInput(bool block)
Indicates that user input shall be blocked or released, depending on the argument.
static void setServerAddress(const TQCString &addr)
Sets the address of a server to use upon attaching.
Definition dcopclient.cpp:671
void applicationRegistered(const TQCString &appId)
Indicates that the application appId has been registered with the server we are attached to.
static DCOPClient * mainClient()
Returns the application's main dcop client.
Definition dcopclient.cpp:599
void applicationRemoved(const TQCString &appId)
Indicates that the formerly registered application appId has been removed.
bool findObject(const TQCString &remApp, const TQCString &remObj, const TQCString &remFun, const TQByteArray &data, TQCString &foundApp, TQCString &foundObj, bool useEventLoop, int timeout)
Searches for an object which matches a criteria.
Definition dcopclient.cpp:1160
TQCString defaultObject() const
Returns the current default object or an empty string if no object is installed as default object.
Definition dcopclient.cpp:2079
DCOPClient()
Constructs a new DCOP client, but does not attach to any server.
Definition dcopclient.cpp:610
void attachFailed(const TQString &msg)
Indicates that the process of establishing DCOP communications failed in some manner.
QCStringList remoteObjects(const TQCString &remApp, bool *ok=0)
Retrieves the list of objects of the remote application remApp.
Definition dcopclient.cpp:1288
virtual bool process(const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData)
Reimplement this function to handle app-wide function calls unassociated w/an object.
Definition dcopclient.cpp:1256
bool connectDCOPSignal(const TQCString &sender, const TQCString &senderObj, const TQCString &signal, const TQCString &receiverObj, const TQCString &slot, bool Volatile)
Connects to a DCOP signal.
Definition dcopclient.cpp:2192
TQCString registerAs(const TQCString &appId, bool addPID=true)
Registers at the DCOP server.
Definition dcopclient.cpp:983
bool isSuspended() const
Returns whether DCOP events are being processed.
Definition dcopclient.cpp:721
static TQCString dcopServerFile(const TQCString &hostname=0)
File with information how to reach the dcopserver.
Definition dcopclient.cpp:316
static TQCString normalizeFunctionSignature(const TQCString &fun)
Normalizes the function signature fun.
Definition dcopclient.cpp:1055
void setAcceptCalls(bool b)
Specify whether the client should accept incoming calls.
Definition dcopclient.cpp:967
void setDefaultObject(const TQCString &objId)
Installs object objId as application-wide default object.
Definition dcopclient.cpp:2073
static TQCString iceauthPath()
Return the path of iceauth or an empty string if not found.
Definition dcopclient.cpp:214
You must use a proxy if you want to dispatch method calls for object IDs which don't have (yet) a cor...
Definition dcopobject.h:353
Trinity API Reference