Enable replaygain for the new FLAC decoder
[Rockbox.git] / apps / status.h
blob29316f98b11613ef4675c13f494b20d31d935a7b
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 Linus Nielsen Feltzing
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef _STATUS_H
20 #define _STATUS_H
22 extern enum playmode ff_mode;
24 extern long switch_tick;
25 extern bool battery_state;
26 #ifdef HAVE_CHARGING
27 extern int battery_charge_step;
28 #endif
30 #if defined(HAVE_LCD_CHARCELLS)
31 extern bool record;
32 extern bool audio;
33 extern bool param;
34 extern bool usb;
35 #endif
37 enum playmode
39 STATUS_PLAY,
40 STATUS_STOP,
41 STATUS_PAUSE,
42 STATUS_FASTFORWARD,
43 STATUS_FASTBACKWARD,
44 STATUS_RECORD,
45 STATUS_RECORD_PAUSE
48 void status_init(void);
49 void status_set_ffmode(enum playmode mode);
50 enum playmode status_get_ffmode(void);
51 int current_playmode(void);
53 #ifdef HAVE_LCD_BITMAP
54 bool statusbar(bool state);
55 #if CONFIG_KEYPAD == RECORDER_PAD
56 void buttonbar_set(const char* caption1, const char* caption2,
57 const char* caption3);
58 void buttonbar_unset(void);
59 bool buttonbar_isset(void);
60 void buttonbar_draw(void);
61 #define BUTTONBAR_HEIGHT 8
62 #endif /* CONFIG_KEYPAD == RECORDER_PAD */
63 #endif /* HAVE_LCD_BITMAP */
64 void status_draw(bool force_redraw);
66 #if defined(HAVE_LCD_CHARCELLS)
67 void status_set_record(bool b);
68 void status_set_audio(bool b);
69 void status_set_param(bool b);
70 void status_set_usb(bool b);
71 #endif
73 #ifdef SIMULATOR
74 #include <time.h>
75 #endif
76 #endif