Touchscreen targets: add basic progress bar & volume handling
[kugel-rb.git] / apps / gui / wps_engine / wps_engine.h
blobfe034f91389a7a034ef44a4fdee1c84a6f562748
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: gwps.h 22003 2009-07-22 22:10:25Z kugel $
10 * Copyright (C) 2007 Nicolas Pennequin
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 ****************************************************************************/
22 /** Use this for stuff which external code needs to include **/
24 #ifndef _WPS_ENGINE_H
25 #define _WPS_ENGINE_H
26 #include <stdbool.h>
27 #include "wps_internals.h" /* TODO: remove this line.. shoudlnt be needed */
30 #ifdef HAVE_TOUCHSCREEN
31 int wps_get_touchaction(struct wps_data *data);
32 #endif
34 #ifdef HAVE_ALBUMART
35 /* gives back if WPS contains an albumart tag */
36 bool gui_sync_wps_uses_albumart(void);
37 #endif
39 /* setup and display a WPS for the first time */
40 bool gui_wps_display(struct gui_wps *gwps);
41 /* do a requested redraw */
42 bool gui_wps_redraw(struct gui_wps *gwps,
43 int ffwd_offset,
44 unsigned refresh_mode);
45 /* do a partial redraw, or full if required, also do any housekeeping
46 * which might be needed */
47 bool gui_wps_update(struct gui_wps *gwps);
49 #endif