2004-01-14 00:13:04 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 by Benjamin Metzler
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __BOOKMARK_H__
|
|
|
|
#define __BOOKMARK_H__
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2005-11-19 03:19:12 +00:00
|
|
|
#if CONFIG_KEYPAD == ONDIO_PAD
|
|
|
|
#define BOOKMARK_SELECT_PRE BUTTON_RIGHT
|
|
|
|
#define BOOKMARK_SELECT (BUTTON_RIGHT | BUTTON_REL)
|
|
|
|
#define BOOKMARK_DELETE (BUTTON_RIGHT | BUTTON_REPEAT)
|
|
|
|
#define BOOKMARK_DOWN BUTTON_DOWN
|
|
|
|
|
|
|
|
#elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \
|
|
|
|
(CONFIG_KEYPAD == IRIVER_H300_PAD)
|
|
|
|
#define BOOKMARK_SELECT BUTTON_SELECT
|
|
|
|
#define BOOKMARK_DELETE (BUTTON_ON | BUTTON_SELECT)
|
|
|
|
#define BOOKMARK_DOWN BUTTON_DOWN
|
|
|
|
|
2005-12-19 00:11:28 +00:00
|
|
|
#elif (CONFIG_KEYPAD == IPOD_4G_PAD)
|
2005-11-19 03:19:12 +00:00
|
|
|
#define BOOKMARK_SELECT BUTTON_SELECT
|
|
|
|
#define BOOKMARK_DELETE (BUTTON_RIGHT | BUTTON_REPEAT)
|
|
|
|
#define BOOKMARK_DOWN BUTTON_SCROLL_FWD
|
|
|
|
|
2006-01-12 00:35:50 +00:00
|
|
|
#elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD
|
|
|
|
#define BOOKMARK_SELECT BUTTON_SELECT
|
|
|
|
#define BOOKMARK_DELETE (BUTTON_PLAY | BUTTON_SELECT)
|
|
|
|
#define BOOKMARK_DOWN BUTTON_DOWN
|
|
|
|
|
2006-01-18 11:09:06 +00:00
|
|
|
#elif CONFIG_KEYPAD == IAUDIO_X5_PAD
|
|
|
|
#define BOOKMARK_SELECT BUTTON_MENU
|
|
|
|
#define BOOKMARK_DELETE BUTTON_REC | BUTTON_REPEAT
|
|
|
|
#define BOOKMARK_DOWN BUTTON_DOWN
|
|
|
|
|
2005-11-19 03:19:12 +00:00
|
|
|
#else /* player, recorder, gmini */
|
|
|
|
#define BOOKMARK_SELECT BUTTON_PLAY
|
|
|
|
#define BOOKMARK_DELETE (BUTTON_ON | BUTTON_PLAY)
|
|
|
|
#define BOOKMARK_DOWN BUTTON_DOWN
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2005-06-23 01:31:26 +00:00
|
|
|
bool bookmark_load_menu(void);
|
2004-01-14 00:13:04 +00:00
|
|
|
bool bookmark_autobookmark(void);
|
|
|
|
bool bookmark_create_menu(void);
|
|
|
|
bool bookmark_mrb_load(void);
|
2004-08-18 01:09:31 +00:00
|
|
|
bool bookmark_autoload(const char* file);
|
|
|
|
bool bookmark_load(const char* file, bool autoload);
|
2004-12-07 14:20:37 +00:00
|
|
|
void bookmark_play(char* resume_file, int index, int offset, int seed,
|
|
|
|
char *filename);
|
2005-06-23 01:31:26 +00:00
|
|
|
bool bookmark_exist(void);
|
2004-01-14 00:13:04 +00:00
|
|
|
|
|
|
|
#endif /* __BOOKMARK_H__ */
|
|
|
|
|