From 3f092f7778ed608d454df4c3dc3b3f7cb4afde3b Mon Sep 17 00:00:00 2001 From: Tom Marshall Date: Mon, 24 Nov 2014 16:02:04 -0800 Subject: recovery: Awakening of MiniVold A minimal vold client for recovery. Change-Id: Id25d955dc1861a910e5f5fc27d9a19e245d66833 --- device.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'device.h') diff --git a/device.h b/device.h index 1faad5f..d761d2a 100644 --- a/device.h +++ b/device.h @@ -19,7 +19,7 @@ #include "ui.h" -class Device { +class Device : public VoldWatcher { public: Device(RecoveryUI* ui) : ui_(ui) { } virtual ~Device() { } @@ -59,9 +59,9 @@ class Device { enum BuiltinAction { NO_ACTION = 0, REBOOT = 1, - APPLY_SDCARD = 2, + APPLY_UPDATE = 2, // APPLY_CACHE was 3. - APPLY_ADB_SIDELOAD = 4, + // APPLY_ADB_SIDELOAD was 4. WIPE_DATA = 5, WIPE_CACHE = 6, REBOOT_BOOTLOADER = 7, @@ -91,6 +91,7 @@ class Device { static const int kHighlightDown = -3; static const int kInvokeItem = -4; static const int kGoBack = -5; + static const int kRefresh = -6; // Called before and after we do a wipe data/factory reset operation, // either via a reboot from the main system with the --wipe_data flag, @@ -106,6 +107,8 @@ class Device { // Called before reboot virtual char const* GetRebootReason() { return ""; } + virtual void onVolumeChanged() { ui_->onVolumeChanged(); } + private: RecoveryUI* ui_; }; -- cgit v1.1