send showWindow event when app start over
[apps/agl-service-homescreen.git] / src / hs-clientmanager.h
index efc36de..54283c2 100644 (file)
@@ -48,17 +48,20 @@ public:
     int handleRequest(afb_req_t request, const char *verb, const char *appid = nullptr);
     int pushEvent(const char *event, struct json_object *param, std::string appid = "");
     void removeClientCtxt(void *data);  // don't use, internal only
+    void setStartupAppid(const std::string &appid) {startup_appid = appid;}
 
 private:
     HS_ClientCtxt* createClientCtxt(afb_req_t req, std::string appid);
     HS_Client* addClient(afb_req_t req, std::string appid);
     void removeClient(std::string appid);
+    void checkRegisterApp(const std::string &appid);
 
 private:
     static HS_ClientManager* me;
     std::unordered_map<std::string, HS_Client*> client_list;
     std::unordered_map<std::string, HS_ClientCtxt*> appid2ctxt;
     std::mutex mtx;
+    std::string startup_appid;
 };
 
 #endif // HOMESCREEN_CLIENTMANAGER_H
\ No newline at end of file