summaryrefslogtreecommitdiffstats
path: root/lib/MiddleWare/MiddleWare.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MiddleWare/MiddleWare.h')
-rw-r--r--lib/MiddleWare/MiddleWare.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/lib/MiddleWare/MiddleWare.h b/lib/MiddleWare/MiddleWare.h
index 82b734b7..2986b7ef 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_*/