dcop
DCOPSignals Class Reference
#include <dcopsignals.h>
Public Member Functions | |
bool | connectSignal (const QCString &sender, const QCString &senderObj, const QCString &signal, DCOPConnection *conn, const QCString &receiverObj, const QCString &slot, bool Volatile) |
DCOPSignals () | |
bool | disconnectSignal (const QCString &sender, const QCString &senderObj, const QCString &signal, DCOPConnection *conn, const QCString &receiverObj, const QCString &slot) |
void | emitSignal (DCOPConnection *conn, const QCString &fun, const QByteArray &data, bool excludeSelf) |
void | removeConnections (DCOPConnection *conn, const QCString &obj=0) |
Public Attributes | |
QAsciiDict < DCOPSignalConnectionList > | connections |
Detailed Description
For internal use only.
Definition at line 60 of file dcopsignals.h.
Constructor & Destructor Documentation
DCOPSignals::DCOPSignals | ( | ) |
Definition at line 27 of file dcopsignals.cpp.
Member Function Documentation
bool DCOPSignals::connectSignal | ( | const QCString & | sender, | |
const QCString & | senderObj, | |||
const QCString & | signal, | |||
DCOPConnection * | conn, | |||
const QCString & | receiverObj, | |||
const QCString & | slot, | |||
bool | Volatile | |||
) |
Connects "signal" of the client named "sender" with the "slot" of "receiverObj" in the "conn" client.
If "Volatile" is true the connection will be removed when either "sender" or "conn" unregisters.
If "Volatile" is false the connection will only be removed when "conn" unregisters.
Returns true if succesfull. False on failure. An attempt to create a Volatile connection to a non-existing client results in a failure.
If "Volatile" is true the connection will be removed when either "sender" or "conn" unregisters.
If "Volatile" is false the connection will only be removed when "conn" unregisters.
Definition at line 97 of file dcopsignals.cpp.
bool DCOPSignals::disconnectSignal | ( | const QCString & | sender, | |
const QCString & | senderObj, | |||
const QCString & | signal, | |||
DCOPConnection * | conn, | |||
const QCString & | receiverObj, | |||
const QCString & | slot | |||
) |
Disconnects "signal" of the client named "sender" from the "slot" of "receiverObj" in the "conn" client.
If "receiverObj" is empty, every object is disconnected. If "slot" is empty, every slot is disconnected.
Returns true if successful, false if no connection was found.
Special case: If sender & signal are empty all connections that involve conn & receiverObj (either as receiver or as sender) are disconnected.
Definition at line 169 of file dcopsignals.cpp.
void DCOPSignals::emitSignal | ( | DCOPConnection * | conn, | |
const QCString & | _fun, | |||
const QByteArray & | data, | |||
bool | excludeSelf | |||
) |
Client "conn" emits the signal "fun" with "data" as arguments.
conn is 0L if the dcopserver sends the signal itself
The emitting object is encoded in "fun".
If "excludeSelf" is true, signal is never send to "conn" itself.
If "excludeSelf" is true, signal is never sent to "conn" itself.
Definition at line 38 of file dcopsignals.cpp.
void DCOPSignals::removeConnections | ( | DCOPConnection * | conn, | |
const QCString & | obj = 0 | |||
) |
Removes all connections related to the "conn" client.
Removes all connections related to "obj" in the "conn" client This means: All connections for which "conn"/"obj" is the receiver.
This means: All connections for which "conn" is the receiver. All volatile connections for which "conn" is the sender.
All volatile connections for which "conn"/"obj" is the sender.
Definition at line 231 of file dcopsignals.cpp.
Member Data Documentation
Definition at line 127 of file dcopsignals.h.
The documentation for this class was generated from the following files: