summaryrefslogtreecommitdiffstats
path: root/ui.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2011-10-31 17:34:15 +0100
committerDoug Zongker <dougz@android.com>2011-10-31 21:50:32 +0100
commit7d0542f28045640dfab6a259ae7bd796e653d66f (patch)
tree801e5acd7cb5a101182f325e1d4f343581b35801 /ui.h
parentrefactor ui functions into a class (diff)
downloadandroid_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar
android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.gz
android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.bz2
android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.lz
android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.xz
android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.zst
android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.zip
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui.h b/ui.h
index 6150bfd50..3ca99a614 100644
--- a/ui.h
+++ b/ui.h
@@ -64,6 +64,13 @@ class RecoveryUI {
// Erase any queued-up keys.
virtual void FlushKeys() = 0;
+ // Called on each keypress, even while operations are in progress.
+ // Return value indicates whether an immediate operation should be
+ // triggered (toggling the display, rebooting the device), or if
+ // the key should be enqueued for use by the main thread.
+ enum KeyAction { ENQUEUE, TOGGLE, REBOOT };
+ virtual KeyAction CheckKey(int key) = 0;
+
// --- menu display ---
// Display some header text followed by a menu of items, which appears