start launcher and lastmode after homescreen started
[apps/agl-service-homescreen.git] / src / hs-config.h
index 849dc4f..56a2cfe 100644 (file)
@@ -30,8 +30,8 @@ struct handshake_info {
 
 struct recover_app_info {
     std::string appid;  // application id like "dashboard"
-    std::string area;   // application default display area
     bool visibility;    // the visibility when system starting
+    std::string after;  // startup after which application
 };
 
 using recover_map = std::unordered_map<std::string, std::vector<struct recover_app_info>>;
@@ -49,20 +49,21 @@ public:
     const struct handshake_info* getHandshakeInfo(void) const {return &m_handshake_info;}
     recover_map& getRecoverMap(void) {return m_recover_map;}
     static const std::array<std::string, RECOVER_MAX> keys_recover_type;   // based on hs-conf.json
+    static const std::string lastmode_json;
+    static const std::string key_appid;
+    static const std::string key_visibility;
+    static const std::string key_after;
+    static std::string root_dir;
 
 private:
     int parseConfig(void);
     std::vector<struct recover_app_info> getRecoverAppInfo(struct json_object *obj);
 
     const std::string hs_conf_json = "hs-conf.json";
-    const std::string lastmode_json = "lastmode.json";
     const std::string key_handshake = "handshake";
     const std::string key_times = "times";
     const std::string key_sleep = "sleep";
     const std::string key_recover = "recover";
-    const std::string key_appid = "appid";
-    const std::string key_visibility = "visibility";
-    const std::string key_area = "area";
 
     struct json_object *m_hs_conf;
     struct json_object *m_lastmode;