diff options
| author | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-02 11:39:54 +0200 |
|---|---|---|
| committer | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-02 11:39:54 +0200 |
| commit | f2658049fa50cb8b9898691263d7147217e78218 (patch) | |
| tree | 222412d78d7d4d8e52f5ef3a1d6e93c0479c8097 /lib/MiddleWare/MiddleWare.h | |
| parent | 72a763a187a27c3838e87d7a79aeded7a8933ca9 (diff) | |
| download | abrt-f2658049fa50cb8b9898691263d7147217e78218.tar.gz abrt-f2658049fa50cb8b9898691263d7147217e78218.tar.xz abrt-f2658049fa50cb8b9898691263d7147217e78218.zip | |
added new interface frof settings
Diffstat (limited to 'lib/MiddleWare/MiddleWare.h')
| -rw-r--r-- | lib/MiddleWare/MiddleWare.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/lib/MiddleWare/MiddleWare.h b/lib/MiddleWare/MiddleWare.h index 82b734b..2986b7e 100644 --- a/lib/MiddleWare/MiddleWare.h +++ b/lib/MiddleWare/MiddleWare.h @@ -35,16 +35,16 @@ class CMiddleWare typedef set_strings_t set_blacklist_t; typedef set_strings_t set_enabled_plugins_t; typedef set_strings_t set_reporters_t; - typedef set_strings_t set_opengpg_keys_t; - typedef std::map<std::string, set_reporters_t> map_plugin2reporters_t; + typedef std::map<std::string, set_reporters_t> map_reporter_associations_t; + typedef std::map<std::string, vector_strings_t> map_single_actions_t; + typedef std::map<std::string, map_single_actions_t> map_action_associations_t; CPluginManager* m_pPluginManager; CRPM m_RPM; set_blacklist_t m_setBlackList; - set_enabled_plugins_t m_setEnabledPlugins; - set_opengpg_keys_t m_setOpenGPGKeys; std::string m_sDatabase; - map_plugin2reporters_t m_mapPlugin2Reporters; + map_reporter_associations_t m_mapAnalyzerReporters; + map_action_associations_t m_mapAnalyzerActions; bool m_bOpenGPGCheck; @@ -55,8 +55,6 @@ class CMiddleWare void CreateReport(const std::string& pAnalyzer, const std::string& pDebugDumpDir); - void LoadSettings(const std::string& pPath); - void DebugDumpToCrashReport(const std::string& pDebugDumpDir, crash_report_t& pCrashReport); @@ -70,8 +68,7 @@ class CMiddleWare public: CMiddleWare(const std::string& pPlugisConfDir, - const std::string& pPlugisLibDir, - const std::string& pMiddleWareConfFile); + const std::string& pPlugisLibDir); ~CMiddleWare(); @@ -93,6 +90,16 @@ class CMiddleWare int SaveDebugDump(const std::string& pDebugDumpDir, crash_info_t& pCrashInfo); vector_crash_infos_t GetCrashInfos(const std::string& pUID); + + void SetOpenGPGCheck(const bool& pCheck); + void SetDatabase(const std::string& pDatabase); + void AddOpenGPGPublicKey(const std::string& pKey); + void AddBlackListedPackage(const std::string& pPackage); + void AddAnalyzerReporter(const std::string& pAnalyzer, + const std::string& pReporter); + void AddAnalyzerAction(const std::string& pAnalyzer, + const std::string& pAction, + const vector_strings_t& pArgs); }; #endif /*MIDDLEWARE_H_*/ |
