skin tags: fix the id3 track/disc numbers in conditionals
[maemo-rb.git] / apps / appevents.h
bloba11e423a90b9951a2a683995464ed7a15ad7cfcd
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2008 by Jonathan Gordon
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.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef _APPEVENTS_H
23 #define _APPEVENTS_H
25 #include <stdbool.h>
26 #include "events.h"
28 /** Only app/ level events should be defined here.
29 * firmware/ level events and CLASS's are defined in firmware/export/events.h
32 /** Playback events **/
33 enum {
34 /* Playback is starting from a stopped state */
35 PLAYBACK_EVENT_START_PLAYBACK = (EVENT_CLASS_PLAYBACK|1),
36 /* Audio has begun buffering for decoding track (or is already completed) */
37 PLAYBACK_EVENT_TRACK_BUFFER,
38 /* Handles for current user track are ready (other than audio or codec) */
39 PLAYBACK_EVENT_CUR_TRACK_READY,
40 /* Current user track finished */
41 PLAYBACK_EVENT_TRACK_FINISH,
42 /* A new current user track has begun */
43 PLAYBACK_EVENT_TRACK_CHANGE,
44 /* A manual skip is about to be processed */
45 PLAYBACK_EVENT_TRACK_SKIP,
46 /* Next track medadata was just loaded */
47 PLAYBACK_EVENT_NEXTTRACKID3_AVAILABLE,
50 /** Buffering events **/
51 enum {
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 BUFFER_EVENT_BUFFER_RESET
60 /** Generic GUI class events **/
61 enum {
62 GUI_EVENT_STATUSBAR_TOGGLE = (EVENT_CLASS_GUI|1),
63 GUI_EVENT_ACTIONUPDATE,
64 GUI_EVENT_THEME_CHANGED,
65 /* Called when the UI viewport is cleared in the skin engine to
66 * notify the current screen that it needs to do an update */
67 GUI_EVENT_NEED_UI_UPDATE,
70 /** Recording events **/
71 enum {
72 RECORDING_EVENT_START = (EVENT_CLASS_RECORDING|1),
73 RECORDING_EVENT_STOP,
75 #endif