diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-05-25 09:40:52 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-05-25 10:15:25 +0800 |
commit | 724716d4fba8550efa549ff0ae60c1afedfa7c1d (patch) | |
tree | acf89274c4f9060708d50040b52a2b29a79b6bff /src/hs-client.h | |
parent | bfaca7514c709e818aa9f7eaa7ebb590e5166733 (diff) |
add register/update shortcut
Change-Id: I0e56c9b696e1b7354c49c9f22536960d69efdcb9
Diffstat (limited to 'src/hs-client.h')
-rw-r--r-- | src/hs-client.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hs-client.h b/src/hs-client.h index cbf2f33..985ecf1 100644 --- a/src/hs-client.h +++ b/src/hs-client.h @@ -20,6 +20,7 @@ #include <string> #include <unordered_set> #include <unordered_map> +#include <list> #include "hs-helper.h" @@ -45,18 +46,21 @@ private: int unsubscribe(afb_req_t request); int showNotification(afb_req_t request); int showInformation(afb_req_t request); + int registerShortcut(afb_req_t request); + int updateShortcut(afb_req_t request); typedef int (HS_Client::*func_handler)(afb_req_t); static const std::unordered_map<std::string, func_handler> func_list; bool checkEvent(const char* event); bool isSupportEvent(const char* event); + void pushUpdateShortcutEvent(void); private: std::string my_id; afb_event_t my_event; bool subscription = false; std::unordered_set<std::string> event_list; - + static std::list<std::pair<std::string, std::string>> shortcut_list; }; #endif // HOMESCREEN_CLIENT_H
\ No newline at end of file |