diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-10 15:52:27 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-10 15:52:27 +0200 |
commit | c9e10d9e86fc1d6870374391b1d5c645150b1c05 (patch) | |
tree | 57068f85734d3b47befa26bd8b195486b99979d2 /src/Daemon/CrashWatcher.cpp | |
parent | 3bab9d79a01ac70a78c012eaa82dccaaa5c59ee5 (diff) | |
download | abrt-c9e10d9e86fc1d6870374391b1d5c645150b1c05.tar.gz abrt-c9e10d9e86fc1d6870374391b1d5c645150b1c05.tar.xz abrt-c9e10d9e86fc1d6870374391b1d5c645150b1c05.zip |
DBUS: added new method to get plugin settings
Diffstat (limited to 'src/Daemon/CrashWatcher.cpp')
-rw-r--r-- | src/Daemon/CrashWatcher.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index 697a9a04..344dda7a 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()); + } +} |