summaryrefslogtreecommitdiffstats
path: root/src/hs-clientmanager.h
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-01-16 10:54:43 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-01-16 10:55:06 +0800
commit53ae85dc62875fc92f1d24e25359beda8787826d (patch)
tree71bb67f2d9f3c4e07aa8902d589c75eebc2b75ee /src/hs-clientmanager.h
parent83cc1aeb7dcb0ce030a24f9aa079bb15bc2ef60a (diff)
Improve homescreen-service
1.Improve class cohesion and reduce public interface number 2.Unified event pattern BUG-AGL: SPEC-2120 Change-Id: I4c5066be2deaf2b809af66cb5a8acdc5bffa5a23 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Diffstat (limited to 'src/hs-clientmanager.h')
-rw-r--r--src/hs-clientmanager.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/hs-clientmanager.h b/src/hs-clientmanager.h
index 64ca03c..d485ea8 100644
--- a/src/hs-clientmanager.h
+++ b/src/hs-clientmanager.h
@@ -45,18 +45,8 @@ public:
static HS_ClientManager* instance(void);
int init(void);
- void removeClientCtxt(void *data);
-
- int tap_shortcut(afb_req_t request);
- int showWindow(afb_req_t request);
- int hideWindow(afb_req_t request);
- int replyShowWindow(afb_req_t request);
- int on_screen_message(afb_req_t request);
- int on_screen_reply(afb_req_t request);
- int subscribe(afb_req_t request);
- int unsubscribe(afb_req_t request);
- int showNotification(afb_req_t request);
- int showInformation(afb_req_t request);
+ int handleRequest(afb_req_t request, const char *verb, const char *appid = nullptr);
+ void removeClientCtxt(void *data); // don't use, internal only
private:
HS_ClientCtxt* createClientCtxt(afb_req_t req, std::string appid);