diff options
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); |