#include <dcopobject.h>
Inheritance diagram for DCOPObject:

Public Methods | |
| DCOPObject () | |
| DCOPObject (QObject *obj) | |
| DCOPObject (const QCString &objId) | |
| virtual | ~DCOPObject () |
| QCString | objId () const |
| bool | setObjId (const QCString &objId) |
| virtual bool | process (const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData) |
| virtual bool | processDynamic (const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData) |
| virtual QCStringList | functionsDynamic () |
| virtual QCStringList | interfacesDynamic () |
| virtual QCStringList | interfaces () |
| virtual QCStringList | functions () |
| void | emitDCOPSignal (const QCString &signal, const QByteArray &data) |
| bool | connectDCOPSignal (const QCString &sender, const QCString &senderObj, const QCString &signal, const QCString &slot, bool Volatile) |
| bool | disconnectDCOPSignal (const QCString &sender, const QCString &senderObj, const QCString &signal, const QCString &slot) |
| DCOPClient * | callingDcopClient () |
Static Public Methods | |
| bool | hasObject (const QCString &objId) |
| DCOPObject * | find (const QCString &objId) |
| QPtrList< DCOPObject > | match (const QCString &partialId) |
| QCString | objectName (QObject *obj) |
This class provides an interface for receiving DCOP messages. To use it, simply multiply-inherit from DCOPObject and from some other class, and then implement the DCOPObject::process() method. Because this method is pure virtual, you must implement the method.
Note that it is usually more convenient to mark a section in the class with "k_dcop:", add your DCOP methods there and let the IDL compiler do the rest. Read the tutorials for more information.
Definition at line 65 of file dcopobject.h.
|
|
Creates a DCOPObject and calculates the object id using its physical memory address. |
|
|
Creates a DCOPObject and calculates the object id using QObject::name().
|
|
|
Creates a DCOPObject with object Id
|
|
|
Destroys the DCOPObject and removes it from the map of known objects. |
|
|
Returns the DCOPClient responsible for making the call. Only call this function while you are handling a DCOP call.
|
|
||||||||||||||||||||||||
|
Connects to a DCOP signal.
|
|
||||||||||||||||||||
|
Disconnects a DCOP signal.
A special case is when both
|
|
||||||||||||
|
Emit
|
|
|
Try to find a dcop object with the given id. This function does not query the DCOPObjectProxy.
|
|
|
Returns the list of functions understood by the object. It gets reimplemented by the IDL compiler. If you don't use the IDL compiler, consider implementing this function manually if you want your object to be easily scriptable. Rationale: functions() allows an interpreter to do client-side type-casting properly. Note to implementators: remember to call the baseclasses implementation.
Reimplemented in MyDCOPObject, and KIO::Scheduler. |
|
|
This function is of interest when you used an IDL compiler to generate the implementation for functions() but you still want to list some functions dynamically. Dynamically means that the methods may appear and vanish during runtime.
Reimplemented in KMainWindowInterface. |
|
|
Checks whether an object with the given id is known in this process.
|
|
|
Returns the names of the interfaces, specific ones last. The functions gets reimplemented by the IDL compiler. If you don't use the IDL compiler, consider implementing this function manually if you want your object to be easily explorable.
|
|
|
This function is of interest when you used an IDL compiler to generate the implementation for interfaces() but you still want to list some interfaces dynamically. Dynamically means that they may appear and vanish during runtime.
|
|
|
Tries to find an object using a partial object id. This function is used for multicasting a DCOP message to several objects inside a single process.
|
|
|
Creates an object id for the QObject
|
|
|
Returns the object id of the DCOPObject.
|
|
||||||||||||||||||||
|
Dispatches a message. Usually you want to use an IDL compiler to automatically generate an implementation for this function. If this function returns false, then processDynamic() is called. Note to implementators: remember to call the baseclasses implementation. It handles the functions "functions()" and "interfaces()" which return the lists of supported functions and interfaces, respectively.
Reimplemented in MyDCOPObject, KUniqueApplication, KPanelAppMenu, and KIO::Scheduler. |
|
||||||||||||||||||||
|
This function is of interest when you used an IDL compiler to generate the implementation for process() but you still want to dispatch some functions dynamically. Dynamically means that methods may appear and vanish during runtime.
Reimplemented in KMainWindowInterface. |
|
|
Renames a dcop object, if no other with the same name exists Use with care, all dcop signals are disconnected
|
1.2.18