Fix reds for IAP and a missing #include.
[kugel-rb.git] / apps / gui / wps.h
blobf2f44859cab389a8a777d996d6863f2103538819
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: gwps-common.h 20492 2009-03-23 17:19:48Z alle $
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);
30 void wps_data_init(enum screen_type);
32 void gui_sync_wps_init(void);
34 /* fades the volume, e.g. on pause or stop */
35 void fade(bool fade_in, bool updatewps);
37 bool ffwd_rew(int button);
38 void display_keylock_text(bool locked);
40 bool is_wps_fading(void);
43 #ifdef HAVE_ALBUMART
45 * Returns true if at least one of the gui_wps screens has an album art
46 * tag in its wps structure and writes the width and height into the passed
47 * pointers
49 bool wps_uses_albumart(int*, int*);
50 #endif
52 #ifdef IPOD_ACCESSORY_PROTOCOL
53 /* return length of the current ff or rewin action, IAP needs this */
54 int wps_get_ff_rewind_count(void);
55 #endif /* IPOD_ACCESSORY_PROTOCOL */
57 #endif /* _WPS_H_ */