diff options
Diffstat (limited to 'apps/gui/statusbar.h')
-rw-r--r-- | apps/gui/statusbar.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/apps/gui/statusbar.h b/apps/gui/statusbar.h index 03add6a6d9..a03c294523 100644 --- a/apps/gui/statusbar.h +++ b/apps/gui/statusbar.h | |||
@@ -31,38 +31,40 @@ | |||
31 | 31 | ||
32 | struct status_info { | 32 | struct status_info { |
33 | int battlevel; | 33 | int battlevel; |
34 | int batt_charge_step; | ||
34 | int volume; | 35 | int volume; |
36 | int playmode; | ||
37 | int repeat; | ||
35 | #ifdef CONFIG_RTC | 38 | #ifdef CONFIG_RTC |
36 | int hour; | 39 | int hour; |
37 | int minute; | 40 | int minute; |
38 | #endif | 41 | #endif |
39 | int playmode; | 42 | |
40 | int repeat; | 43 | #ifdef CONFIG_CHARGING |
41 | bool inserted; | 44 | bool inserted; |
45 | #endif | ||
46 | #ifdef HAVE_USB_POWER | ||
47 | bool usb_power; | ||
48 | #endif | ||
49 | bool battery_state; | ||
42 | bool shuffle; | 50 | bool shuffle; |
43 | bool keylock; | 51 | bool keylock; |
44 | #ifdef HAS_REMOTE_BUTTON_HOLD | 52 | #ifdef HAS_REMOTE_BUTTON_HOLD |
45 | bool keylockremote; | 53 | bool keylockremote; |
46 | #endif | 54 | #endif |
47 | bool battery_safe; | ||
48 | bool redraw_volume; /* true if the volume gauge needs updating */ | ||
49 | #if (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD) | 55 | #if (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD) |
50 | bool led; /* disk LED simulation in the status bar */ | 56 | bool led; /* disk LED simulation in the status bar */ |
51 | #endif | 57 | #endif |
52 | 58 | ||
53 | #ifdef HAVE_USB_POWER | ||
54 | bool usb_power; | ||
55 | #endif | ||
56 | }; | 59 | }; |
57 | 60 | ||
58 | struct gui_statusbar | 61 | struct gui_statusbar |
59 | { | 62 | { |
60 | /* Volume icon stuffs */ | 63 | long battery_icon_switch_tick; |
64 | |||
61 | long volume_icon_switch_tick; | 65 | long volume_icon_switch_tick; |
62 | int last_volume; | 66 | int last_volume; |
63 | 67 | bool redraw_volume; /* true if the volume gauge needs updating */ | |
64 | long battery_icon_switch_tick; | ||
65 | int animated_level; | ||
66 | 68 | ||
67 | struct status_info info; | 69 | struct status_info info; |
68 | struct status_info lastinfo; | 70 | struct status_info lastinfo; |
@@ -95,7 +97,7 @@ extern void gui_statusbar_init(struct gui_statusbar * bar); | |||
95 | */ | 97 | */ |
96 | extern void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw); | 98 | extern void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw); |
97 | 99 | ||
98 | void gui_statusbar_icon_battery(struct screen * display, int percent, int animated_percent); | 100 | void gui_statusbar_icon_battery(struct screen * display, int percent, int batt_charge_step); |
99 | bool gui_statusbar_icon_volume(struct gui_statusbar * bar, int volume); | 101 | bool gui_statusbar_icon_volume(struct gui_statusbar * bar, int volume); |
100 | void gui_statusbar_icon_play_state(struct screen * display, int state); | 102 | void gui_statusbar_icon_play_state(struct screen * display, int state); |
101 | void gui_statusbar_icon_play_mode(struct screen * display, int mode); | 103 | void gui_statusbar_icon_play_mode(struct screen * display, int mode); |