blob: 36e19b0df7a348a9a1ba17cce5e7876d9f165cf6 [file] [log] [blame]
Jonathan Gordon71898e52008-10-16 10:38:03 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
Bertrik Sikken6fef14b2010-01-03 14:28:09 +00008 * $Id$
Jonathan Gordon71898e52008-10-16 10:38:03 +00009 *
10 * Copyright (C) 2008 by Jonathan Gordon
11 *
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.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#ifndef _APPEVENTS_H
23#define _APPEVENTS_H
24
25#include <stdbool.h>
26#include "events.h"
27
28/** Only app/ level events should be defined here.
29 * firmware/ level events and CLASS's are defined in firmware/export/events.h
30 */
31
32/** Playback events **/
33enum {
Michael Sevakiscaf907e2011-05-25 08:35:31 +000034 /* Playback is starting from a stopped state */
Jonathan Gordon7d5e0d72010-05-16 11:13:42 +000035 PLAYBACK_EVENT_START_PLAYBACK = (EVENT_CLASS_PLAYBACK|1),
Michael Sevakiscaf907e2011-05-25 08:35:31 +000036 /* Audio has begun buffering for decoding track (or is already completed) */
Jonathan Gordon7d5e0d72010-05-16 11:13:42 +000037 PLAYBACK_EVENT_TRACK_BUFFER,
Michael Sevakiscaf907e2011-05-25 08:35:31 +000038 /* Handles for current user track are ready (other than audio or codec) */
39 PLAYBACK_EVENT_CUR_TRACK_READY,
40 /* Current user track finished */
Jonathan Gordon71898e52008-10-16 10:38:03 +000041 PLAYBACK_EVENT_TRACK_FINISH,
Michael Sevakiscaf907e2011-05-25 08:35:31 +000042 /* A new current user track has begun */
Jonathan Gordon71898e52008-10-16 10:38:03 +000043 PLAYBACK_EVENT_TRACK_CHANGE,
Michael Sevakiscaf907e2011-05-25 08:35:31 +000044 /* A manual skip is about to be processed */
Michael Sevakisc537d592011-04-27 03:08:23 +000045 PLAYBACK_EVENT_TRACK_SKIP,
Michael Sevakiscaf907e2011-05-25 08:35:31 +000046 /* Next track medadata was just loaded */
Jonathan Gordon843c7ef2009-04-06 00:39:43 +000047 PLAYBACK_EVENT_NEXTTRACKID3_AVAILABLE,
Jonathan Gordon71898e52008-10-16 10:38:03 +000048};
49
50/** Buffering events **/
51enum {
52 BUFFER_EVENT_BUFFER_LOW = (EVENT_CLASS_BUFFERING|1),
53 BUFFER_EVENT_REBUFFER,
54 BUFFER_EVENT_CLOSED,
55 BUFFER_EVENT_MOVED,
56 BUFFER_EVENT_FINISHED,
57};
58
59/** Generic GUI class events **/
60enum {
Thomas Martitz4c48b592009-08-16 22:20:11 +000061 GUI_EVENT_STATUSBAR_TOGGLE = (EVENT_CLASS_GUI|1),
Jonathan Gordon8b9fdb52009-01-05 09:59:11 +000062 GUI_EVENT_ACTIONUPDATE,
Thomas Martitz2eb1cb62009-09-07 17:37:06 +000063 GUI_EVENT_THEME_CHANGED,
Jonathan Gordon71898e52008-10-16 10:38:03 +000064};
65
Jonathan Gordon7d5e0d72010-05-16 11:13:42 +000066/** Recording events **/
67enum {
68 RECORDING_EVENT_START = (EVENT_CLASS_RECORDING|1),
69 RECORDING_EVENT_STOP,
70};
Jonathan Gordon71898e52008-10-16 10:38:03 +000071#endif
72
73