aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/system/libkvisystem.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2008-11-17 20:02:36 +0000
committerGravatar Fabio Bas2008-11-17 20:02:36 +0000
commit2a96ac6c8a0ea9b0307b862ef6a479934c820b78 (patch)
treebfb2b180bcfdd2115daca2509a952824846f51af /src/modules/system/libkvisystem.cpp
parentfixed KDE4 rules, added initial Python rules (diff)
downloadKVIrc-2a96ac6c8a0ea9b0307b862ef6a479934c820b78.tar.gz
KVIrc-2a96ac6c8a0ea9b0307b862ef6a479934c820b78.tar.bz2
KVIrc-2a96ac6c8a0ea9b0307b862ef6a479934c820b78.zip
removed remaining bits of old dcop implementation
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2880 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/system/libkvisystem.cpp')
-rw-r--r--src/modules/system/libkvisystem.cpp29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/modules/system/libkvisystem.cpp b/src/modules/system/libkvisystem.cpp
index 964922cec..29447176d 100644
--- a/src/modules/system/libkvisystem.cpp
+++ b/src/modules/system/libkvisystem.cpp
@@ -44,8 +44,8 @@
#include <unistd.h>
#endif
-#ifdef COMPILE_KDE3_SUPPORT
- #include <dcopclient.h>
+#ifdef COMPILE_KDE_SUPPORT
+ #include <QtDBus/QtDBus>
#endif
KviPluginManager * g_pPluginManager;
@@ -398,19 +398,19 @@ static bool system_kvs_fnc_hostname(KviKvsModuleFunctionCall *c)
/*
- @doc: system.dcop
+ @doc: system.dbus
@keyterms:
System information
@type:
function
@title:
- $system.dcop
+ $system.dbus
@short:
- Performs a DCOP call
+ Performs a DBus call
@syntax:
- <variant> $system.dcop(<application:string>,<objectid:string>,<function:string>[,<parameter1:string>[,<parameter2:string>[,...]]])
+ <variant> $system.dbus(<service:string>,<path:string>,<interface:string>,<method:string>[,<parameter1:string>[,<parameter2:string>[,...]]])
@description:
- This function allows performing simple DCOP calls without executing
+ This function allows performing simple Dbus calls without executing
an external process. This feature is available ONLY when KDE support
is compiled in the executable: this means that this function is absolutely
non portable (don't use it in scripts that you're going to distribute).
@@ -443,7 +443,7 @@ static bool system_kvs_fnc_hostname(KviKvsModuleFunctionCall *c)
[/example]
*/
-static bool system_kvs_fnc_dcop(KviKvsModuleFunctionCall *c)
+static bool system_kvs_fnc_dbus(KviKvsModuleFunctionCall *c)
{
bool bTestMode = false;
@@ -451,12 +451,13 @@ static bool system_kvs_fnc_dcop(KviKvsModuleFunctionCall *c)
QStringList parms;
KVSM_PARAMETERS_BEGIN(c)
- KVSM_PARAMETER("application",KVS_PT_NONEMPTYCSTRING,0,szApp)
- KVSM_PARAMETER("objectid",KVS_PT_NONEMPTYCSTRING,0,szObj)
- KVSM_PARAMETER("function",KVS_PT_NONEMPTYCSTRING,0,szFun)
+ KVSM_PARAMETER("service",KVS_PT_NONEMPTYCSTRING,0,szService)
+ KVSM_PARAMETER("path",KVS_PT_NONEMPTYCSTRING,0,szPath)
+ KVSM_PARAMETER("interface",KVS_PT_NONEMPTYCSTRING,0,szInterface)
+ KVSM_PARAMETER("method",KVS_PT_NONEMPTYCSTRING,0,szMethod)
KVSM_PARAMETER("parameter_list",KVS_PT_STRINGLIST,KVS_PF_OPTIONAL,parms)
KVSM_PARAMETERS_END(c)
-
+/*
if((szApp.data()) && (szApp.length() > 1))
{
if(*(szApp.data()) == '?')
@@ -585,7 +586,7 @@ static bool system_kvs_fnc_dcop(KviKvsModuleFunctionCall *c)
c->warning(__tr2qs("DCOP calls are available only when KDE support is compiled in"));
c->returnValue()->setInteger(0);
#endif
-
+*/
return true;
}
@@ -693,7 +694,7 @@ static bool system_module_init(KviModule * m)
KVSM_REGISTER_FUNCTION(m,"osnodename",system_kvs_fnc_osnodename);
KVSM_REGISTER_FUNCTION(m,"getenv",system_kvs_fnc_getenv);
KVSM_REGISTER_FUNCTION(m,"hostname",system_kvs_fnc_hostname);
- KVSM_REGISTER_FUNCTION(m,"dcop",system_kvs_fnc_dcop);
+ KVSM_REGISTER_FUNCTION(m,"dbus",system_kvs_fnc_dbus);
KVSM_REGISTER_FUNCTION(m,"clipboard",system_kvs_fnc_clipboard);
KVSM_REGISTER_FUNCTION(m,"selection",system_kvs_fnc_selection);
KVSM_REGISTER_FUNCTION(m,"checkModule",system_kvs_fnc_checkModule);