add handshake loop
[apps/agl-service-homescreen.git] / src / hs-apprecover.h
index b702bd9..28b0ce6 100644 (file)
@@ -38,7 +38,8 @@ public:
 
     static HS_AppRecover* instance(void);
     int init(afb_api_t api);
-    void startRecovery(afb_api_t api, recover_map &map);
+    void setRecoverMap(recover_map &map) {recover_app_map.swap(map);}
+    void startRecovery(afb_api_t api);
     bool registerRecoveredApp(afb_api_t api, const std::string &appid);
     void screenUpdated(struct json_object *obj);
 
@@ -53,6 +54,7 @@ private:
     std::set<std::string> m_recovering_set;
     std::map<std::string, std::set<std::string>> m_wait_recover_set;
     std::set<std::string> m_lastmode_list;
+    recover_map recover_app_map;
 };
 
 #endif // HOMESCREEN_APPRECOVER_H
\ No newline at end of file