diff options
| author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-11 16:18:01 +0100 |
|---|---|---|
| committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-11 16:18:01 +0100 |
| commit | e7b063bebc9ada8ce5a20dcc6326fbe001a30af7 (patch) | |
| tree | 994eb674839b83819f241fa4d6d7272fb4e8660c /lib/MiddleWare/MiddleWare.h | |
| parent | ee95f1b02a1d9da61c707b16c0286e9b5301db0d (diff) | |
| download | abrt-e7b063bebc9ada8ce5a20dcc6326fbe001a30af7.tar.gz abrt-e7b063bebc9ada8ce5a20dcc6326fbe001a30af7.tar.xz abrt-e7b063bebc9ada8ce5a20dcc6326fbe001a30af7.zip | |
added reporting methods
Diffstat (limited to 'lib/MiddleWare/MiddleWare.h')
| -rw-r--r-- | lib/MiddleWare/MiddleWare.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/lib/MiddleWare/MiddleWare.h b/lib/MiddleWare/MiddleWare.h index b9cf8b6..95c29be 100644 --- a/lib/MiddleWare/MiddleWare.h +++ b/lib/MiddleWare/MiddleWare.h @@ -32,20 +32,31 @@ class CMiddleWare { private: - - typedef std::set<std::string> set_blacklist_t; - typedef std::set<std::string> set_enabled_plugins_t; + typedef set_settings_t set_blacklist_t; + typedef set_settings_t set_enabled_plugins_t; + typedef set_settings_t set_reporters_t; + typedef std::map<std::string, set_reporters_t> map_plugin2reporters_t; CPluginManager* m_pPluginManager; set_blacklist_t m_setBlackList; set_enabled_plugins_t m_setEnabledPlugins; std::string m_sDatabase; + map_plugin2reporters_t m_mapPlugin2Reporters; + std::string GetLocalUUIDLanguage(const std::string& pLanguage, const std::string& pDebugDumpDir); + void CreateReportLanguage(const std::string& pLanguage, + const std::string& pDebugDumpDir); std::string GetLocalUUIDApplication(const std::string& pApplication, - const std::string& pDebugDumpPath); + const std::string& pDebugDumpDir); + void CreateReportApplication(const std::string& pApplication, + const std::string& pDebugDumpDir); + void LoadSettings(const std::string& pPath); + + void CreateReport(const std::string& pDebugDumpDir); + void SendReport(const std::string& pDebugDumpDir); public: typedef struct SCrashInfo @@ -55,6 +66,7 @@ class CMiddleWare std::string m_sCount; std::string m_sExecutable; std::string m_sPackage; + std::string m_sTime; } crash_info_t; typedef std::vector<crash_info_t> vector_crash_infos_t; @@ -68,11 +80,9 @@ class CMiddleWare void RegisterPlugin(const std::string& pName); void UnRegisterPlugin(const std::string& pName); - void GetReport(const std::string& pUUID, const std::string& pUID); - int Report(const std::string& pReport); + void Report(const std::string& pUUID, const std::string& pUID); int SaveDebugDump(const std::string& pDebugDumpPath, crash_info_t& pCrashInfo); - vector_crash_infos_t GetCrashInfos(const std::string& pUID); }; |
