diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-06-06 15:35:50 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-06-06 15:35:50 +0900 |
commit | 8e6374d5e56f3e00ed08b970f3a95cb7e24407e1 (patch) | |
tree | f0558bf69a136d77066b8cdfa4e7d19dab7ec863 /src/hs-apprecover.h | |
parent | a0f2388949b5bf4daae5f13227df479fff420a53 (diff) |
add vui event
Diffstat (limited to 'src/hs-apprecover.h')
-rw-r--r-- | src/hs-apprecover.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hs-apprecover.h b/src/hs-apprecover.h index 28b0ce6..48138b5 100644 --- a/src/hs-apprecover.h +++ b/src/hs-apprecover.h @@ -20,6 +20,7 @@ #include <set> #include "hs-helper.h" #include "hs-config.h" +#include "hs-clientmanager.h" struct app_recover_info { std::string recover_type; @@ -27,9 +28,9 @@ struct app_recover_info { std::string after; }; -class HS_AppRecover { +class HS_AppRecover : public listener_interface { public: - HS_AppRecover() = default; + HS_AppRecover() : listener_interface(std::string("hs_apprecover")) {} ~HS_AppRecover() = default; HS_AppRecover(HS_AppRecover const &) = delete; HS_AppRecover &operator=(HS_AppRecover const &) = delete; @@ -40,8 +41,8 @@ public: int init(afb_api_t api); void setRecoverMap(recover_map &map) {recover_app_map.swap(map);} void startRecovery(afb_api_t api); - bool registerRecoveredApp(afb_api_t api, const std::string &appid); void screenUpdated(struct json_object *obj); + void notify(afb_api_t api, std::string appid = ""); private: void startApplication(afb_api_t api, const std::string &appid); |