FS#12756 by Marek Salaba - update Czech translation
[maemo-rb.git] / apps / plugins / lib / pluginlib_actions.h
blob51a0f4a84a5a5eb45e6e42f51be706e344e130b5
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 Jonathan Gordon
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
23 #ifndef __PLUGINLIB_ACTIONS_H__
24 #define __PLUGINLIB_ACTIONS_H__
26 #include "config.h"
27 #include "plugin.h"
28 #include "action.h"
30 /* PLA stands for Plugin Lib Action :P */
31 enum {
32 PLA_UP = LAST_ACTION_PLACEHOLDER+1,
33 PLA_DOWN,
34 PLA_LEFT,
35 PLA_RIGHT,
36 PLA_UP_REPEAT,
37 PLA_DOWN_REPEAT,
38 PLA_LEFT_REPEAT,
39 PLA_RIGHT_REPEAT,
41 PLA_CANCEL,
42 PLA_EXIT,
43 PLA_SELECT,
44 PLA_SELECT_REL,
45 PLA_SELECT_REPEAT,
47 #ifdef HAVE_SCROLLWHEEL
48 PLA_SCROLL_FWD,
49 PLA_SCROLL_FWD_REPEAT,
50 PLA_SCROLL_BACK,
51 PLA_SCROLL_BACK_REPEAT,
52 #endif
54 LAST_PLUGINLIB_ACTION
57 #if defined(HAVE_REMOTE_LCD)
58 extern const struct button_mapping pla_remote_ctx[];
59 #endif
60 extern const struct button_mapping pla_main_ctx[];
62 int pluginlib_getaction(int timeout,
63 const struct button_mapping *plugin_contexts[],
64 int count);
66 #endif /* __PLUGINLIB_ACTIONS_H__ */