• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

dcop

DCOPSignals Class Reference

#include <dcopsignals.h>

List of all members.


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

QAsciiDict<DCOPSignalConnectionList> DCOPSignals::connections

Definition at line 127 of file dcopsignals.h.


The documentation for this class was generated from the following files:
  • dcopsignals.h
  • dcopsignals.cpp

dcop

Skip menu "dcop"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal