Add some playback controls to the SBS. 2 new touch regions wps_next/wps_prev needed...
[maemo-rb.git] / apps / gui / wps.h
blob7438f1ac7b3ef8090c833d1b1fbe19cd0d969e2b
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 Björn Stenberg
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef _WPS_H_
22 #define _WPS_H_
23 #include <stdbool.h>
24 #include "screen_access.h"
26 long gui_wps_show(void);
28 /* wrapper for the wps to load the skin (.wps/.rwps) files */
29 void wps_data_load(enum screen_type, const char *, bool);
31 void gui_sync_wps_init(void) INIT_ATTR;
33 /* fades the volume, e.g. on pause or stop */
34 void fade(bool fade_in, bool updatewps);
36 bool ffwd_rew(int button);
37 void display_keylock_text(bool locked);
38 void wps_do_playpause(bool updatewps);
40 #ifdef IPOD_ACCESSORY_PROTOCOL
41 /* whether the wps is fading the volume due to pausing/stopping */
42 bool is_wps_fading(void);
43 /* return length of the current ff or rewin action, IAP needs this */
44 int wps_get_ff_rewind_count(void);
45 #endif /* IPOD_ACCESSORY_PROTOCOL */
47 /* in milliseconds */
48 #define DEFAULT_SKIP_TRESH 3000l
50 #endif /* _WPS_H_ */