blob: 24637ac18cc2fab179ad9b326fac7167f4b1b17c [file] [log] [blame]
Björn Stenbergd7a55e12003-03-12 20:21:30 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
Nicolas Pennequin357ffb32008-05-05 10:32:46 +000010 * Copyright (C) 2002 Björn Stenberg
Björn Stenbergd7a55e12003-03-12 20:21:30 +000011 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * 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.
Björn Stenbergd7a55e12003-03-12 20:21:30 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef _ONPLAY_H_
22#define _ONPLAY_H_
23
Jeffrey Gooded5e6bc72010-04-01 03:14:44 +000024int onplay(char* file, int attr, int from_screen, bool hotkey);
Björn Stenbergd7a55e12003-03-12 20:21:30 +000025
Hardeep Sidhu9e426202003-07-01 21:05:43 +000026enum {
Jonathan Gordon91cb68a2007-03-01 11:14:46 +000027 ONPLAY_MAINMENU = -1,
28 ONPLAY_OK = 0,
Hardeep Sidhu9e426202003-07-01 21:05:43 +000029 ONPLAY_RELOAD_DIR,
Thomas Martitzc19e5362010-02-20 19:06:39 +000030 ONPLAY_START_PLAY,
31 ONPLAY_PLAYLIST,
Jonathan Gordond871ff82010-06-09 04:25:41 +000032 ONPLAY_PICTUREFLOW,
Hardeep Sidhu9e426202003-07-01 21:05:43 +000033};
34
Jeffrey Goodeaccc0462010-04-08 01:43:50 +000035#ifdef HAVE_HOTKEY
Jeffrey Goode156272f2010-05-11 04:41:15 +000036int get_hotkey_lang_id(int action);
Jeffrey Goode1ad76ff2010-05-09 02:02:51 +000037
38enum hotkey_action {
39 HOTKEY_OFF = 0,
40 HOTKEY_VIEW_PLAYLIST,
41 HOTKEY_SHOW_TRACK_INFO,
42 HOTKEY_PITCHSCREEN,
43 HOTKEY_OPEN_WITH,
44 HOTKEY_DELETE,
45 HOTKEY_INSERT,
Jeffrey Goodee141f802010-05-11 13:40:25 +000046 HOTKEY_INSERT_SHUFFLED,
Jonathan Gordond871ff82010-06-09 04:25:41 +000047 HOTKEY_PICTUREFLOW,
Solomon Peachy5e8db162019-01-01 19:37:13 -050048 HOTKEY_BOOKMARK,
Jeffrey Goode1ad76ff2010-05-09 02:02:51 +000049};
Jeffrey Goodeaccc0462010-04-08 01:43:50 +000050#endif
51
Jonathan Gordon97a4c1e2011-07-20 14:11:15 +000052/* needed for the playlist viewer.. eventually clean this up */
53void onplay_show_playlist_cat_menu(char* track_name);
Jonathan Gordon101693f2011-11-15 13:22:02 +000054void onplay_show_playlist_menu(char* path);
Jonathan Gordon97a4c1e2011-07-20 14:11:15 +000055
Björn Stenbergd7a55e12003-03-12 20:21:30 +000056#endif