From c9e10d9e86fc1d6870374391b1d5c645150b1c05 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Mon, 10 Aug 2009 15:52:27 +0200 Subject: DBUS: added new method to get plugin settings --- src/Daemon/CrashWatcher.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/Daemon/CrashWatcher.cpp') diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index 697a9a0..344dda7 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -892,3 +892,19 @@ vector_map_string_string_t CCrashWatcher::GetPluginsInfo() // but maybe returning empty map is wrong here? return vector_map_string_string_t(); } + +map_plugin_settings_t CCrashWatcher::GetPluginSettings(const std::string& pName) +{ + try + { + return m_pMW->GetPluginSettings(pName); + } + catch(CABRTException &e) + { + if (e.type() == EXCEP_FATAL) + { + throw e; + } + Warning(e.what()); + } +} -- cgit