DCOPSignals Class Reference
List of all members.Detailed Description
Definition at line 60 of file dcopsignals.h.
Public Member Functions | |
DCOPSignals () | |
void | emitSignal (DCOPConnection *conn, const QCString &fun, const QByteArray &data, bool excludeSelf) |
bool | connectSignal (const QCString &sender, const QCString &senderObj, const QCString &signal, DCOPConnection *conn, const QCString &receiverObj, const QCString &slot, bool Volatile) |
bool | disconnectSignal (const QCString &sender, const QCString &senderObj, const QCString &signal, DCOPConnection *conn, const QCString &receiverObj, const QCString &slot) |
void | removeConnections (DCOPConnection *conn, const QCString &obj=0) |
Public Attributes | |
QAsciiDict< DCOPSignalConnectionList > | connections |
Member Function Documentation
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.
Definition at line 38 of file dcopsignals.cpp.
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.
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.
Definition at line 169 of file dcopsignals.cpp.
void DCOPSignals::removeConnections | ( | DCOPConnection * | conn, | |
const QCString & | obj = 0 | |||
) |
Removes all connections related to the "conn" client.
This means: All connections for which "conn" is the receiver. All volatile connections for which "conn" is the sender.
Definition at line 231 of file dcopsignals.cpp.
The documentation for this class was generated from the following files: