diff options
| author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-12 10:00:08 +0100 |
|---|---|---|
| committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-12 10:00:08 +0100 |
| commit | e935c9e8a7208f04af8fce1e32e8c8d8c52beca5 (patch) | |
| tree | 6efa7bbe38c754645be82e1721ab06a607b0c693 /lib/MiddleWare/MiddleWare.h | |
| parent | 8b9c51fff870ef59066878ae818bb3aaf4c04682 (diff) | |
| download | abrt-e935c9e8a7208f04af8fce1e32e8c8d8c52beca5.tar.gz abrt-e935c9e8a7208f04af8fce1e32e8c8d8c52beca5.tar.xz abrt-e935c9e8a7208f04af8fce1e32e8c8d8c52beca5.zip | |
changet reporting function according reporter's iface
Diffstat (limited to 'lib/MiddleWare/MiddleWare.h')
| -rw-r--r-- | lib/MiddleWare/MiddleWare.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/MiddleWare/MiddleWare.h b/lib/MiddleWare/MiddleWare.h index 95c29be..7164d48 100644 --- a/lib/MiddleWare/MiddleWare.h +++ b/lib/MiddleWare/MiddleWare.h @@ -55,8 +55,8 @@ class CMiddleWare void LoadSettings(const std::string& pPath); - void CreateReport(const std::string& pDebugDumpDir); - void SendReport(const std::string& pDebugDumpDir); + void DebugDump2Report(const std::string& pDebugDumpDir, CReporter::report_t& pReport); + public: typedef struct SCrashInfo @@ -69,6 +69,12 @@ class CMiddleWare std::string m_sTime; } crash_info_t; + typedef struct SCrashReport + { + std::string m_sPlugin2ReportersName; + CReporter::report_t m_Report; + } crash_report_t; + typedef std::vector<crash_info_t> vector_crash_infos_t; CMiddleWare(const std::string& pPlugisConfDir, @@ -80,7 +86,12 @@ class CMiddleWare void RegisterPlugin(const std::string& pName); void UnRegisterPlugin(const std::string& pName); - void Report(const std::string& pUUID, const std::string& pUID); + void CreateReport(const std::string& pDebugDumpDir, + crash_report_t& pReport); + void CreateReport(const std::string& pUUID, + const std::string& pUID, + crash_report_t& pReport); + void Report(const crash_report_t& pReport); int SaveDebugDump(const std::string& pDebugDumpPath, crash_info_t& pCrashInfo); vector_crash_infos_t GetCrashInfos(const std::string& pUID); |
