2005-11-18 09:03:25 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
2008-05-05 09:40:22 +00:00
|
|
|
* Copyright (C) 2002 Björn Stenberg
|
2005-11-18 09:03:25 +00:00
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2005-11-18 09:03:25 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
2005-11-17 20:20:01 +00:00
|
|
|
#ifndef _GWPS_COMMON_
|
|
|
|
#define _GWPS_COMMON_
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <sys/types.h> /* for size_t */
|
|
|
|
|
2005-11-18 09:03:25 +00:00
|
|
|
#include "gwps.h"
|
2005-11-17 20:20:01 +00:00
|
|
|
|
2009-03-23 03:08:56 +00:00
|
|
|
/* fades the volume, e.g. on pause or stop */
|
2008-06-23 02:45:55 +00:00
|
|
|
void fade(bool fade_in, bool updatewps);
|
2009-03-23 03:08:56 +00:00
|
|
|
|
2009-03-23 17:19:48 +00:00
|
|
|
/* Initially display the wps, can fall back to the built-in wps
|
|
|
|
* if the chosen wps is invalid.
|
|
|
|
*
|
|
|
|
* Return true on success, otherwise false */
|
2009-03-23 03:08:56 +00:00
|
|
|
bool gui_wps_display(struct gui_wps *gui_wps);
|
|
|
|
|
|
|
|
/* return true if screen restore is needed
|
|
|
|
return false otherwise */
|
2005-11-20 22:13:52 +00:00
|
|
|
bool update_onvol_change(struct gui_wps * gwps);
|
2009-03-23 03:08:56 +00:00
|
|
|
|
2009-03-23 17:19:48 +00:00
|
|
|
/* Update track info related stuff, handle cue sheets as well, and redraw */
|
2009-03-23 03:08:56 +00:00
|
|
|
bool gui_wps_update(struct gui_wps *gwps);
|
|
|
|
|
2005-11-17 20:20:01 +00:00
|
|
|
bool ffwd_rew(int button);
|
|
|
|
void display_keylock_text(bool locked);
|
|
|
|
|
2009-03-23 17:19:48 +00:00
|
|
|
/* Refresh the WPS according to refresh_mode.
|
|
|
|
*
|
|
|
|
* Return true on success, otherwise false */
|
2009-03-23 03:08:56 +00:00
|
|
|
bool gui_wps_redraw(struct gui_wps *gwps,
|
2007-04-04 14:41:40 +00:00
|
|
|
int ffwd_offset,
|
2009-03-23 03:08:56 +00:00
|
|
|
unsigned refresh_mode);
|
2007-04-04 14:41:40 +00:00
|
|
|
#endif
|