[Release] wrt-installer_0.1.40
[framework/web/wrt-installer.git] / src / wrt-installer / wrt-installer.h
index 9cd0173..b2288e3 100644 (file)
@@ -27,6 +27,7 @@
 #include <dpl/task.h>
 #include <dpl/string.h>
 #include <string>
+#include <map>
 #include <wrt_installer_api.h>
 
 namespace WRTInstallerNS { //anonymous
@@ -37,6 +38,14 @@ DECLARE_GENERIC_EVENT_0(InstallPluginEvent)
 
 typedef void (*ShowResultCallback)(void *data, Evas_Object *obj,
                                    void *event_info);
+namespace CSCConfiguration {
+typedef std::map<std::string, std::string> dataMap;
+typedef std::pair<std::string, std::string> dataPair;
+const char* const KEY_OP = "op";
+const char* const KEY_PATH = "path";
+const char* const VALUE_INSTALL = "install";
+const char* const VALUE_UNINSTALL = "uninstall";
+}
 
 enum ReturnValue
 {
@@ -109,6 +118,7 @@ class WrtInstaller :
 
     void installNewPlugins();
     bool popupsEnabled() const;
+    CSCConfiguration::dataMap parseCSCConfiguration(std::string str);
 
     // Private data
     std::shared_ptr<PackageManager::IPkgmgrSignal> pkgmgrSignalInterface;
@@ -122,6 +132,7 @@ class WrtInstaller :
     bool m_installByPkgmgr;
     bool m_quiet;
     bool m_startupPluginInstallation;
+    CSCConfiguration::dataMap m_CSCconfigurationMap;
 
     typedef std::list<std::string> PluginPathList;
     DPL::Optional<PluginPathList> m_pluginsPaths;