diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch) | |
tree | 5ac38a06f3dde268dc7927dc155896926aaf7012 /kinit/README.DCOP | |
download | tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip |
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
Diffstat (limited to 'kinit/README.DCOP')
-rw-r--r-- | kinit/README.DCOP | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/kinit/README.DCOP b/kinit/README.DCOP new file mode 100644 index 000000000..43f951226 --- /dev/null +++ b/kinit/README.DCOP @@ -0,0 +1,83 @@ +"KLauncher" supports the following DCOP functions: + +/** + * Starts a program. + * 'envs' are environment variables that will be added + * to this program's environment before starting it + * 'startup_id' is for application startup notification, + * "" is the default, "0" for none + */ +void exec_blind(QCString name, QValueList<QCString> argList, + QValueList<QCString> envs, QCString startup_id ); +void exec_blind(QCString name, QValueList<QCString> argList); + +/** + * Start a service by name. + * + * 'serviceName' refers to the service name as given by + * the Name field in the desktop file describing the service. + * + * 'url', if not empty, will be passed to the service as + * argument. + * + * 'envs' are environment variables that will be added + * to this program's environment before starting it + * + * 'startup_id' is for application startup notification, + * "" is the default, "0" for none + */ +serviceResult start_service_by_name(QString serviceName, QStringList url, + QValueList<QCString> envs, QCString startup_id ); +serviceResult start_service_by_name(QString serviceName, QStringList url) + +/** + * Start a service by desktop path. + * + * 'serviceName' refers to a desktop file describing the service. + * This may be an absolute path or a path relative to $KDEDIRS/applnk + * and/or $KDEDIRS/services + * E.g. it should have the form "Applications/korganizer.desktop" or + * "/opt/kde/share/applnk/Applications/korganizer.desktop". + * + * 'url', if not empty, will be passed to the service as + * argument. + * + * 'envs' are environment variables that will be added + * to this program's environment before starting it + * + * 'startup_id' is for application startup notification, + * "" is the default, "0" for none + */ +serviceResult start_service_by_desktop_path(QString serviceName, QStringList url, + QValueList<QCString> envs, QCString startup_id ); +serviceResult start_service_by_desktop_path(QString serviceName, QStringList url) + + +/** + * Start a service by desktop name. + * + * 'serviceName' refers to a desktop file describing the service. + * The service is looked up anywhere in $KDEDIR/applnk and/or + * $KDEDIR/services. + * E.g. it should have the form "korganizer". + * + * 'url', if not empty, will be passed to the service as + * argument. + * + * 'envs' are environment variables that will be added + * to this program's environment before starting it + * + * 'startup_id' is for application startup notification, + * "" is the default, "0" for none + */ +serviceResult start_service_by_desktop_name(QString serviceName, QStringList url, + QValueList<QCString> envs, QCString startup_id ); +serviceResult start_service_by_desktop_name(QString serviceName, QStringList url) + +struct serviceResult +{ + int result; // 0 means success. > 0 means error + QCString dcopName; // Contains DCOP name on success + QString error; // Contains error description on failure. +} + |