X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhs-clientmanager.h;fp=src%2Fhs-clientmanager.h;h=a5682981203ec1b90202da299b6971d936ceb83e;hb=8788711b78485032f334939d8d3ddfc319189cd2;hp=49968f1e95bce51c0a5617cf7fea6121a63ffaef;hpb=64b268e9c1151c1ccff3b9a20cbe3901f347e9ee;p=apps%2Fagl-service-homescreen.git diff --git a/src/hs-clientmanager.h b/src/hs-clientmanager.h index 49968f1..a568298 100644 --- a/src/hs-clientmanager.h +++ b/src/hs-clientmanager.h @@ -57,7 +57,6 @@ public: int unsubscribe(afb_req_t request); int showNotification(afb_req_t request); int showInformation(afb_req_t request); - int handleRequest(const char *verb, afb_req_t request); int pushEvent(const char *event, struct json_object *param, std::string appid = ""); private: @@ -65,20 +64,6 @@ private: HS_Client* addClient(afb_req_t req, std::string appid); void removeClient(std::string appid); - typedef int (HS_ClientManager::*func_handler)(afb_req_t); - const std::unordered_map func_list { - {"tap_shortcut", &HS_ClientManager::tap_shortcut}, - {"showWindow", &HS_ClientManager::showWindow}, - {"hideWindow", &HS_ClientManager::hideWindow}, - {"replyShowWindow", &HS_ClientManager::replyShowWindow}, - {"on_screen_message", &HS_ClientManager::on_screen_message}, - {"on_screen_reply", &HS_ClientManager::on_screen_reply}, - {"subscribe", &HS_ClientManager::subscribe}, - {"unsubscribe", &HS_ClientManager::unsubscribe}, - {"showNotification", &HS_ClientManager::showNotification}, - {"showInformation", &HS_ClientManager::showInformation} - }; - private: static HS_ClientManager* me; std::unordered_map client_list;