From ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- dcop/client/README.dcop | 78 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 dcop/client/README.dcop (limited to 'dcop/client/README.dcop') diff --git a/dcop/client/README.dcop b/dcop/client/README.dcop new file mode 100644 index 000000000..e352cb439 --- /dev/null +++ b/dcop/client/README.dcop @@ -0,0 +1,78 @@ +Overview of dcop command line utilities + +dcop [ [ [ [args]]]] + +Make a dcop call to the specified function. +If no function is specified, a list of available functions is listed. +If no object is specified, a list of available objects is listed. +If no app-id is specified, a list of available application-ids is listed. + +**** +* As of KDE 3.0: You will NO LONGER be able to use "dcop konqueror" to +* communicate with e.g. "konqueror-4783". You will have to use "dcop +* konqueror-4783" for that (or the DCOPRef notation, see below) +**** + +dcopstart + +Starts and returns the on stdout that can be used for the +other commands. E.g. "dcopstart kedit" might return "kedit-29322". An +exit-code of '0' means success. An exit-code of '1' means error, the error +msg is printed to stderr and no data is printed to stdout. + + +dcopfind [-l] [-a] [ [ [args]]] + +Finds an existing DCOP application/object. The select_func can be used to +select a specific single instance out of many based on some criteria. + and may end with a '*' as wildcard. + +The function returns a to stdout in the form + + "DCOPRef(, )" + +if an object is found and returns an exit-code of '0'. +If no object is found, nothing is written to stdout and the exit-code is '1'. + +With the -a option it prints out "" instead of a DCOPRef. + +With the -l option it calls "dcopstart " if no object is found, +stripping off any wildcard from the . If the dcopstart command is +successful the find command is repeated, if the dcopstart command fails, an +error message is printed to stderr and the command exits with exit-code '2'. + +The default selection criteria is "any". Applications can declare their own +select_func as they see fit, e.g. konqueror could declare +"isDoingProtocol(QString protocol)" and then the following command would +select a konqueror mainwindow that is currently handling the help-protocol: + + "dcopfind 'konqueror*' 'konqueror-mainwindow*' 'isDoingProtocol(QString +protocol)' help" + + +dcop args + +In addtion to the current syntax of + + dcop args + +you will now also be able to use to make calls with being +"DCOPRef(, )" as returned by dcopfind. + +Additional utilities: + + "dcopref " + +Creates a DCOPRef from appid and object. + + + "dcopclient " + +Extracts the appid from dcopref. + + + "dcopobject " + +Extracts the object from dcopref. + + -- cgit v1.2.1