diff options
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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_; }; |