Simplify touchscreen scrollbar handling code
[Rockbox.git] / apps / tagtree.h
blob1aaa52da8dcbb62546d446101856ccf9a6fc20e8
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 by Miika Pekkarinen
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 ****************************************************************************/
21 #ifdef HAVE_TAGCACHE
22 #ifndef _TAGTREE_H
23 #define _TAGTREE_H
25 #include "tagcache.h"
26 #include "tree.h"
28 #define TAGNAVI_VERSION "#! rockbox/tagbrowser/2.0"
29 #define TAGMENU_MAX_ITEMS 64
30 #define TAGMENU_MAX_MENUS 32
31 #define TAGMENU_MAX_FMTS 32
33 enum table { root = 1, navibrowse, allsubentries, playtrack };
35 struct tagentry {
36 char *name;
37 int newtable;
38 int extraseek;
41 bool tagtree_export(void);
42 bool tagtree_import(void);
43 void tagtree_init(void);
44 int tagtree_enter(struct tree_context* c);
45 void tagtree_exit(struct tree_context* c);
46 int tagtree_load(struct tree_context* c);
47 struct tagentry* tagtree_get_entry(struct tree_context *c, int id);
48 bool tagtree_insert_selection_playlist(int position, bool queue);
49 char *tagtree_get_title(struct tree_context* c);
50 int tagtree_get_attr(struct tree_context* c);
51 int tagtree_get_icon(struct tree_context* c);
52 int tagtree_get_filename(struct tree_context* c, char *buf, int buflen);
54 #endif
55 #endif