2006-03-26 11:33:42 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 by Miika Pekkarinen
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _TAGTREE_H
|
|
|
|
#define _TAGTREE_H
|
|
|
|
|
|
|
|
#include "tagcache.h"
|
|
|
|
#include "tree.h"
|
|
|
|
|
2006-09-21 17:16:35 +00:00
|
|
|
#define TAGNAVI_VERSION "#! rockbox/tagbrowser/2.0"
|
2006-09-25 19:52:38 +00:00
|
|
|
#define TAGMENU_MAX_ITEMS 64
|
2006-09-21 17:16:35 +00:00
|
|
|
#define TAGMENU_MAX_MENUS 16
|
|
|
|
|
2006-04-19 11:03:37 +00:00
|
|
|
enum table { root = 1, navibrowse, allsubentries, playtrack };
|
2006-04-15 13:57:15 +00:00
|
|
|
|
|
|
|
struct tagentry {
|
|
|
|
char *name;
|
|
|
|
int newtable;
|
|
|
|
int extraseek;
|
|
|
|
};
|
2006-03-26 11:33:42 +00:00
|
|
|
|
2006-07-16 15:04:46 +00:00
|
|
|
bool tagtree_export(void);
|
2006-07-20 12:19:31 +00:00
|
|
|
bool tagtree_import(void);
|
2006-04-04 19:28:13 +00:00
|
|
|
void tagtree_init(void);
|
2006-03-26 11:33:42 +00:00
|
|
|
int tagtree_enter(struct tree_context* c);
|
|
|
|
void tagtree_exit(struct tree_context* c);
|
|
|
|
int tagtree_load(struct tree_context* c);
|
2006-04-15 13:57:15 +00:00
|
|
|
struct tagentry* tagtree_get_entry(struct tree_context *c, int id);
|
2006-07-25 07:41:00 +00:00
|
|
|
bool tagtree_insert_selection_playlist(int position, bool queue);
|
2006-09-19 12:36:21 +00:00
|
|
|
char *tagtree_get_title(struct tree_context* c);
|
2006-05-05 07:01:43 +00:00
|
|
|
int tagtree_get_attr(struct tree_context* c);
|
2006-03-26 11:33:42 +00:00
|
|
|
#ifdef HAVE_LCD_BITMAP
|
2006-05-05 07:01:43 +00:00
|
|
|
const unsigned char* tagtree_get_icon(struct tree_context* c);
|
2006-03-26 11:33:42 +00:00
|
|
|
#else
|
|
|
|
int tagtree_get_icon(struct tree_context* c);
|
|
|
|
#endif
|
|
|
|
int tagtree_get_filename(struct tree_context* c, char *buf, int buflen);
|
|
|
|
|
|
|
|
#endif
|