aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs-apprecover.h
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-06-03 14:47:27 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-06-03 17:41:21 +0800
commit3f110d22406e836a7fa8878b00d4b1784ae31a55 (patch)
tree07cfe8c7abaaca1b16045d98e54c5619ca2ba301 /src/hs-apprecover.h
parent6721f3fbd9d3e5de3b41ce1859ae6034da474a8d (diff)
merge vui
Change-Id: I64a1bb68ea3e2b772a40eb78d316c54f8ed25de8
Diffstat (limited to 'src/hs-apprecover.h')
-rw-r--r--src/hs-apprecover.h7
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);