aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs-clientmanager.cpp
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-04-22 17:38:59 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-04-23 19:23:14 +0800
commit95c8f8ac2526acc5f7467704532ea235532b1876 (patch)
treefe26cc3b6953f998935b878b7f9e224412ece96b /src/hs-clientmanager.cpp
parentc393aaa4ae541f1f925981a6f8ae20d46626e8b6 (diff)
add lastmode function
Change-Id: I4b7ca96d1333d170c211b420d79ea9a4d3e1272a
Diffstat (limited to 'src/hs-clientmanager.cpp')
-rw-r--r--src/hs-clientmanager.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/hs-clientmanager.cpp b/src/hs-clientmanager.cpp
index 83d6bb3..1128b01 100644
--- a/src/hs-clientmanager.cpp
+++ b/src/hs-clientmanager.cpp
@@ -17,6 +17,7 @@
#include <cstring>
#include <algorithm>
#include "hs-clientmanager.h"
+#include "hs-apprecover.h"
static const char _homescreen[] = "homescreen";
@@ -187,7 +188,7 @@ int HS_ClientManager::handleRequest(afb_req_t request, const char *verb, const c
appid2ctxt[appid] = createClientCtxt(request, appid);
HS_Client* client = addClient(request, appid);
ret = client->handleRequest(request, "subscribe");
- registerApplication(appid);
+ HS_AppRecover::instance()->registerRecoveredApp(std::string(appid));
}
else {
AFB_NOTICE("not exist session");
@@ -232,19 +233,4 @@ int HS_ClientManager::pushEvent(const char *event, struct json_object *param, st
}
return 0;
-}
-
-/**
- * register recovered application
- *
- * #### Parameters
- * - appid : application id
- *
- * #### Return
- * None
- *
- */
-void HS_ClientManager::registerApplication(std::string appid)
-{
-
} \ No newline at end of file