|
|
Bool |
#include <dcopc.h>
Attach to the DCOP server. This registers you as anonymous-pid - you may then register with a 'real' name with dcop_register().
char * |
#include <dcopc.h>
Register as app 'app_name'. If add_pid is true, you will be registered as app_name-pid.
It might not be possible to give you the exact name you requested. In this case, the retval will be different to what you expect, so you should not rely on getting 'app_name'.
If it was not possible to register, retval is 0.
Bool |
#include <dcopc.h>
Detach from the DCOP server.
Bool |
#include <dcopc.h>
Register the callback function for an object id. This function should have signature dcop_callback_t. The name of the actual function that should be called is passed in the struct.
Bool |
#include <dcopc.h>
Send a signal to a DCOP object.
receiving_app
Name the target application is registered under.
Note that you may use wildcards here. For example,
you could send to all 'konsole' objects that are
registered using the '-pid' extension with
"konsole-*".
object
Name of the remote object.
function
Name of the function to call.
data
Marshalled arguments to pass to function.
data_length
Number of octets in data.
Bool |
#include <dcopc.h>
Call a function of a DCOP object.
app_name
Name this application is registered under.
remote_app_name
Name the target application is registered under.
remote_object_id
Name of the remote object.
remote_function
Name of the function to call.
data
Marshalled arguments to pass to function.
data_length
Number of octets in data.
reply_type
Will be set to type of retval, represented as a string.
reply_data
Will be set to retval (marshalled).
reply_data_length
Will be set to number of octets in retval.
int |
#include <dcopglobal.h>
DCOP Protocol description ================
A DCOPSend message does not expect any reply. data: << fromId << toId << objId << fun << dataSize + data[dataSize]
A DCOPCall message can get a DCOPReply, a DCOPReplyFailed or a DCOPReplyWait message in response. data: << fromId << toId << objId << fun << dataSize + data[dataSize]
DCOPReply is the successfull reply to a DCOPCall message data: << replyType << replyDataSize + replyData[replyDataSize]
DCOPReplyFailed indicates failure of a DCOPCall message data:
DCOPReplyWait indicates that a DCOPCall message is succesfully being processed but that response will come later. data: << transactionId
DCOPReplyDelayed is the successfull reply to a DCOPCall message after a DCOPReplyWait message. data: << fromId << toId << transactionId << replyType << replyData
DCOPFind is a message much like a "call" message. It can however be send to multiple objects within a client. If a function in a object that is being called returns a boolean with the value "true", a DCOPReply will be send back containing the DCOPRef of the object who returned "true".
All c-strings (fromId, toId, objId, fun and replyType), are marshalled with their respective length as 32 bit unsigned integer first: data: length + string[length] Note: This happens automatically when using QCString on a QDataStream.
QDataStream& |
#include <dcopref.h>
Writes the reference (NOT the object itself) to the stream.
QDataStream& |
#include <dcopref.h>
Reads a reference from the stream.
Generated by: prospector@porky.devel.redhat.com on Thu Aug 24 05:35:44 2000, using kdoc 2.0a36. |