summaryrefslogtreecommitdiffstats
path: root/ui.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-09 20:24:45 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-09 20:24:45 +0200
commit52222a58417e7e6349e91e19e4f5e293a3a971c5 (patch)
tree07456a6307d1804376d51214e49698e2887ac1be /ui.h
parentMerge "Enable printf format argument checking." (diff)
parentMove file paging into ScreenRecoveryUI. (diff)
downloadandroid_bootable_recovery-52222a58417e7e6349e91e19e4f5e293a3a971c5.tar
android_bootable_recovery-52222a58417e7e6349e91e19e4f5e293a3a971c5.tar.gz
android_bootable_recovery-52222a58417e7e6349e91e19e4f5e293a3a971c5.tar.bz2
android_bootable_recovery-52222a58417e7e6349e91e19e4f5e293a3a971c5.tar.lz
android_bootable_recovery-52222a58417e7e6349e91e19e4f5e293a3a971c5.tar.xz
android_bootable_recovery-52222a58417e7e6349e91e19e4f5e293a3a971c5.tar.zst
android_bootable_recovery-52222a58417e7e6349e91e19e4f5e293a3a971c5.zip
Diffstat (limited to '')
-rw-r--r--ui.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui.h b/ui.h
index a0580b703..3b217745f 100644
--- a/ui.h
+++ b/ui.h
@@ -31,10 +31,10 @@ class RecoveryUI {
// Initialize the object; called before anything else.
virtual void Init();
// Show a stage indicator. Call immediately after Init().
- virtual void SetStage(int current, int max) { }
+ virtual void SetStage(int current, int max) = 0;
// After calling Init(), you can tell the UI what locale it is operating in.
- virtual void SetLocale(const char* locale) { }
+ virtual void SetLocale(const char* locale) = 0;
// Set the overall recovery state ("background image").
enum Icon { NONE, INSTALLING_UPDATE, ERASING, NO_COMMAND, ERROR };
@@ -65,6 +65,8 @@ class RecoveryUI {
// toggled on the text display).
virtual void Print(const char* fmt, ...) __printflike(2, 3) = 0;
+ virtual void ShowFile(const char* filename) = 0;
+
// --- key handling ---
// Wait for keypress and return it. May return -1 after timeout.