summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-26 14:21:42 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-26 14:21:42 +0200
commitfcd811fdd17adb171478957e31401598dedce166 (patch)
tree14d6a745d822450e436e0fb4c531f987022f4302 /lib
parent2da98808e7484e69f14b19a1039ded34a954f64e (diff)
downloadabrt-fcd811fdd17adb171478957e31401598dedce166.tar.gz
abrt-fcd811fdd17adb171478957e31401598dedce166.tar.xz
abrt-fcd811fdd17adb171478957e31401598dedce166.zip
make some CrashWatcher member functions static; simplify CObserver class
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/CommLayer/Observer.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/lib/CommLayer/Observer.h b/lib/CommLayer/Observer.h
index 1fb820a2..f60fde45 100644
--- a/lib/CommLayer/Observer.h
+++ b/lib/CommLayer/Observer.h
@@ -1,34 +1,17 @@
#ifndef OBSERVER_H_
#define OBSERVER_H_
-//FIXME: move all common types to AbrtTypes.h ??
-#include "DBusCommon.h"
#include <string>
#include <iostream>
#include <stdint.h>
+#include "DBusCommon.h"
class CObserver {
public:
- //CObserver();
virtual ~CObserver() {}
virtual void Status(const std::string& pMessage, const std::string& pDest="0") = 0;
virtual void Debug(const std::string& pMessage) = 0;
virtual void Warning(const std::string& pMessage) = 0;
- /* this should be implemented in daemon */
- virtual vector_crash_infos_t GetCrashInfos(const std::string &pSender) = 0;
- virtual uint64_t CreateReport_t(const std::string &pUUID,const std::string &pUID, const std::string &pSender)
- {
- std::cout << "DEFAULT OBSERVER";
- return 0;
- }
- virtual report_status_t Report(const map_crash_report_t& pReport, const std::string &pSender) = 0;
- virtual bool DeleteDebugDump(const std::string& pUUID, const std::string& pSender) = 0;
- virtual map_crash_report_t GetJobResult(uint64_t pJobID, const std::string &pSender) = 0;
- virtual vector_map_string_string_t GetPluginsInfo() = 0;
- virtual map_plugin_settings_t GetPluginSettings(const std::string& pName, const std::string& pUID) = 0;
- virtual void SetPluginSettings(const std::string& pName, const std::string& pUID, const map_plugin_settings_t& pSettings) = 0;
- virtual void RegisterPlugin(const std::string& pName) = 0;
- virtual void UnRegisterPlugin(const std::string& pName) = 0;
};
-#endif /* OBSERVER_H_ */
+#endif