diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-18 11:57:56 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-18 11:57:56 +0100 |
| commit | 0979cbdd39166d6b5a42380e3ff6297e77d1236d (patch) | |
| tree | b6de00056eb26b5cd995db09b3dfcbb9ecbd21d6 /lib/MiddleWare/MiddleWare.h | |
| parent | 5c22d0c110b8678509817abf9ecf10e3f48525d5 (diff) | |
| parent | 77ef93c89e3fa75d1a5c0f126bcbb001a152bacf (diff) | |
Merge branch 'master' of git://git.fedorahosted.org/git/crash-catcher
Diffstat (limited to 'lib/MiddleWare/MiddleWare.h')
| -rw-r--r-- | lib/MiddleWare/MiddleWare.h | 46 |
1 files changed, 12 insertions, 34 deletions
diff --git a/lib/MiddleWare/MiddleWare.h b/lib/MiddleWare/MiddleWare.h index 71c85ef..ed94f8b 100644 --- a/lib/MiddleWare/MiddleWare.h +++ b/lib/MiddleWare/MiddleWare.h @@ -25,38 +25,15 @@ #define MIDDLEWARE_H_ #include "PluginManager.h" -#include <set> -#include <string> - +#include "CrashTypes.h" +#include "MiddleWareTypes.h" class CMiddleWare { - public: - - typedef struct SCrashInfo - { - std::string m_sUUID; - std::string m_sUID; - std::string m_sCount; - std::string m_sExecutable; - std::string m_sPackage; - std::string m_sTime; - } crash_info_t; - - typedef struct SCrashReport - { - std::string m_sUUID; - std::string m_sUID; - std::string m_sPlugin2ReportersName; - CReporter::report_t m_Report; - } crash_report_t; - - typedef std::vector<crash_info_t> vector_crash_infos_t; - private: - typedef set_settings_t set_blacklist_t; - typedef set_settings_t set_enabled_plugins_t; - typedef set_settings_t set_reporters_t; + typedef set_strings_t set_blacklist_t; + typedef set_strings_t set_enabled_plugins_t; + typedef set_strings_t set_reporters_t; typedef std::map<std::string, set_reporters_t> map_plugin2reporters_t; CPluginManager* m_pPluginManager; @@ -78,9 +55,7 @@ class CMiddleWare void LoadSettings(const std::string& pPath); void DebugDump2Report(const std::string& pDebugDumpDir, - CReporter::report_t& pReport); - void CreateReport(const std::string& pDebugDumpDir, - crash_report_t& pReport); + crash_report_t& pCrashReport); public: @@ -95,10 +70,13 @@ class CMiddleWare void CreateReport(const std::string& pUUID, const std::string& pUID, - crash_report_t& pReport); - void Report(const crash_report_t& pReport); + crash_context_t& pCrashContext, + crash_report_t& pCrashReport); + + void Report(const crash_context_t& pCrashContext, + const crash_report_t& pCrashReport); - int SaveDebugDump(const std::string& pDebugDumpPath, crash_info_t& pCrashInfo); + int SaveDebugDump(const std::string& pDebugDumpDir, crash_info_t& pCrashInfo); vector_crash_infos_t GetCrashInfos(const std::string& pUID); }; |
