summaryrefslogtreecommitdiffstats
path: root/lib/CommLayer/DBusServerProxy.cpp
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-08-10 15:52:27 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-08-10 15:52:27 +0200
commitc9e10d9e86fc1d6870374391b1d5c645150b1c05 (patch)
tree57068f85734d3b47befa26bd8b195486b99979d2 /lib/CommLayer/DBusServerProxy.cpp
parent3bab9d79a01ac70a78c012eaa82dccaaa5c59ee5 (diff)
downloadabrt-c9e10d9e86fc1d6870374391b1d5c645150b1c05.tar.gz
abrt-c9e10d9e86fc1d6870374391b1d5c645150b1c05.tar.xz
abrt-c9e10d9e86fc1d6870374391b1d5c645150b1c05.zip
DBUS: added new method to get plugin settings
Diffstat (limited to 'lib/CommLayer/DBusServerProxy.cpp')
-rw-r--r--lib/CommLayer/DBusServerProxy.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/CommLayer/DBusServerProxy.cpp b/lib/CommLayer/DBusServerProxy.cpp
index 6bf0fbd..18a7c0c 100644
--- a/lib/CommLayer/DBusServerProxy.cpp
+++ b/lib/CommLayer/DBusServerProxy.cpp
@@ -31,6 +31,7 @@ CDBusServer_adaptor::CDBusServer_adaptor()
register_method(CDBusServer_adaptor, DeleteDebugDump, _DeleteDebugDump_stub);
register_method(CDBusServer_adaptor, GetJobResult, _GetJobResult_stub);
register_method(CDBusServer_adaptor, GetPluginsInfo, _GetPluginsInfo_stub);
+ register_method(CDBusServer_adaptor, GetPluginSettings, _GetPluginSettings_stub);
}
/* reveal Interface introspection when we stabilize the API */
/*
@@ -204,3 +205,16 @@ DBus::Message CDBusServer_adaptor::_GetPluginsInfo_stub(const DBus::CallMessage
wi << plugins_info;
return reply;
}
+
+DBus::Message CDBusServer_adaptor::_GetPluginSettings_stub(const DBus::CallMessage &call)
+{
+ DBus::MessageIter ri = call.reader();
+ std::string PluginName;
+ ri >> PluginName;
+ map_plugin_settings_t plugin_settings;
+ plugin_settings = GetPluginSettings(PluginName);
+ DBus::ReturnMessage reply(call);
+ DBus::MessageIter wi = reply.writer();
+ wi << plugin_settings;
+ return reply;
+}