diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-23 14:42:40 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-23 14:42:40 +0200 |
| commit | bcf4c69ca5fdd6489ca1c09890971fc8f647aa1b (patch) | |
| tree | e5fedc350ae9368faf77360ea4fb3c0f6d264210 /lib/CommLayer/Observer.h | |
| parent | 99047bce024f1d23c953649cf56ff67e754e44ef (diff) | |
| download | abrt-bcf4c69ca5fdd6489ca1c09890971fc8f647aa1b.tar.gz abrt-bcf4c69ca5fdd6489ca1c09890971fc8f647aa1b.tar.xz abrt-bcf4c69ca5fdd6489ca1c09890971fc8f647aa1b.zip | |
Added intercomm layer so plugins can send various information to the daemon.
Diffstat (limited to 'lib/CommLayer/Observer.h')
| -rw-r--r-- | lib/CommLayer/Observer.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/CommLayer/Observer.h b/lib/CommLayer/Observer.h index 94cccc0..6f276d7 100644 --- a/lib/CommLayer/Observer.h +++ b/lib/CommLayer/Observer.h @@ -1,6 +1,20 @@ +#ifndef OBSERVER_H_ +#define OBSERVER_H_ + +#include "CrashTypes.h" + class CObserver { public: //CObserver(); virtual ~CObserver() {} - virtual void Update(const std::string& pMessage) = 0; + virtual void StatusUpdate(const std::string& pMessage) = 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 &pDBusSender) = 0; + virtual map_crash_report_t CreateReport(const std::string &pUUID,const std::string &pDBusSender) = 0; + virtual bool Report(map_crash_report_t pReport) = 0; + virtual bool DeleteDebugDump(const std::string& pUUID, const std::string& pDBusSender) = 0; }; + +#endif /* OBSERVER_H_ */ |
