summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/KerneloopsReporter.cpp
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-03-19 14:29:35 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-03-19 14:29:35 +0100
commitd698cf9bca1ac7f5c1a989161ea959a895900273 (patch)
tree1f63a97e9b7aa3eb50ccedc6afa26ecd69ed52d4 /lib/Plugins/KerneloopsReporter.cpp
parent700d189946cecea3461cb89b5a755dbfdb578e71 (diff)
downloadabrt-d698cf9bca1ac7f5c1a989161ea959a895900273.tar.gz
abrt-d698cf9bca1ac7f5c1a989161ea959a895900273.tar.xz
abrt-d698cf9bca1ac7f5c1a989161ea959a895900273.zip
replaced language and application plugins by analyzer plugin
added action plugin simplify plugin iface
Diffstat (limited to 'lib/Plugins/KerneloopsReporter.cpp')
-rw-r--r--lib/Plugins/KerneloopsReporter.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Plugins/KerneloopsReporter.cpp b/lib/Plugins/KerneloopsReporter.cpp
index ef5f56f..56947f0 100644
--- a/lib/Plugins/KerneloopsReporter.cpp
+++ b/lib/Plugins/KerneloopsReporter.cpp
@@ -25,6 +25,7 @@
*/
#include "DebugDump.h"
+#include "Settings.h"
#include "KerneloopsReporter.h"
#include <sstream>
@@ -87,10 +88,13 @@ void CKerneloopsReporter::Report(const crash_report_t& pReport)
curl_easy_cleanup(handle);
}
-void CKerneloopsReporter::SetSettings(const map_settings_t& pSettings)
+void CKerneloopsReporter::LoadSettings(const std::string& pPath)
{
- if (pSettings.find("SubmitURL") != pSettings.end())
+ map_settings_t settings;
+ load_settings(pPath, settings);
+
+ if (settings.find("SubmitURL") != settings.end())
{
- m_sSubmitURL = pSettings.find("SubmitURL")->second;
+ m_sSubmitURL = settings["SubmitURL"];
}
}