Björn Stenberg | d7a55e1 | 2003-03-12 20:21:30 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
Nicolas Pennequin | 357ffb3 | 2008-05-05 10:32:46 +0000 | [diff] [blame] | 10 | * Copyright (C) 2002 Björn Stenberg |
Björn Stenberg | d7a55e1 | 2003-03-12 20:21:30 +0000 | [diff] [blame] | 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame] | 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. |
Björn Stenberg | d7a55e1 | 2003-03-12 20:21:30 +0000 | [diff] [blame] | 16 | * |
| 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 Goode | d5e6bc7 | 2010-04-01 03:14:44 +0000 | [diff] [blame] | 24 | int onplay(char* file, int attr, int from_screen, bool hotkey); |
Björn Stenberg | d7a55e1 | 2003-03-12 20:21:30 +0000 | [diff] [blame] | 25 | |
Hardeep Sidhu | 9e42620 | 2003-07-01 21:05:43 +0000 | [diff] [blame] | 26 | enum { |
Jonathan Gordon | 91cb68a | 2007-03-01 11:14:46 +0000 | [diff] [blame] | 27 | ONPLAY_MAINMENU = -1, |
| 28 | ONPLAY_OK = 0, |
Hardeep Sidhu | 9e42620 | 2003-07-01 21:05:43 +0000 | [diff] [blame] | 29 | ONPLAY_RELOAD_DIR, |
Thomas Martitz | c19e536 | 2010-02-20 19:06:39 +0000 | [diff] [blame] | 30 | ONPLAY_START_PLAY, |
| 31 | ONPLAY_PLAYLIST, |
Jonathan Gordon | d871ff8 | 2010-06-09 04:25:41 +0000 | [diff] [blame] | 32 | ONPLAY_PICTUREFLOW, |
Hardeep Sidhu | 9e42620 | 2003-07-01 21:05:43 +0000 | [diff] [blame] | 33 | }; |
| 34 | |
Jeffrey Goode | accc046 | 2010-04-08 01:43:50 +0000 | [diff] [blame] | 35 | #ifdef HAVE_HOTKEY |
Jeffrey Goode | 156272f | 2010-05-11 04:41:15 +0000 | [diff] [blame] | 36 | int get_hotkey_lang_id(int action); |
Jeffrey Goode | 1ad76ff | 2010-05-09 02:02:51 +0000 | [diff] [blame] | 37 | |
| 38 | enum 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 Goode | e141f80 | 2010-05-11 13:40:25 +0000 | [diff] [blame] | 46 | HOTKEY_INSERT_SHUFFLED, |
Jonathan Gordon | d871ff8 | 2010-06-09 04:25:41 +0000 | [diff] [blame] | 47 | HOTKEY_PICTUREFLOW, |
Solomon Peachy | 5e8db16 | 2019-01-01 19:37:13 -0500 | [diff] [blame] | 48 | HOTKEY_BOOKMARK, |
Jeffrey Goode | 1ad76ff | 2010-05-09 02:02:51 +0000 | [diff] [blame] | 49 | }; |
Jeffrey Goode | accc046 | 2010-04-08 01:43:50 +0000 | [diff] [blame] | 50 | #endif |
| 51 | |
Jonathan Gordon | 97a4c1e | 2011-07-20 14:11:15 +0000 | [diff] [blame] | 52 | /* needed for the playlist viewer.. eventually clean this up */ |
| 53 | void onplay_show_playlist_cat_menu(char* track_name); |
Jonathan Gordon | 101693f | 2011-11-15 13:22:02 +0000 | [diff] [blame] | 54 | void onplay_show_playlist_menu(char* path); |
Jonathan Gordon | 97a4c1e | 2011-07-20 14:11:15 +0000 | [diff] [blame] | 55 | |
Björn Stenberg | d7a55e1 | 2003-03-12 20:21:30 +0000 | [diff] [blame] | 56 | #endif |