summaryrefslogtreecommitdiff
path: root/apps/plugins/databox/edittoken.h
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2006-12-11 20:21:36 +0000
committerNils Wallménius <nils@rockbox.org>2006-12-11 20:21:36 +0000
commited15e2994d66ce917abfe3ca9996e26b5f5b0e42 (patch)
tree33041bb92c3544277e9c5e8b8e1646d8ce046a13 /apps/plugins/databox/edittoken.h
parente22649929f693ce9257043885a7bb3d7ad6fd06c (diff)
downloadrockbox-ed15e2994d66ce917abfe3ca9996e26b5f5b0e42.zip
rockbox-ed15e2994d66ce917abfe3ca9996e26b5f5b0e42.tar.gz
rockbox-ed15e2994d66ce917abfe3ca9996e26b5f5b0e42.tar.bz2
rockbox-ed15e2994d66ce917abfe3ca9996e26b5f5b0e42.tar.xz
1) Delete unused files from old database and old gui files 2) Remove unneccesary includes of the old database header 3) Delete the deprecated databox plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11715 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/databox/edittoken.h')
-rw-r--r--apps/plugins/databox/edittoken.h97
1 files changed, 0 insertions, 97 deletions
diff --git a/apps/plugins/databox/edittoken.h b/apps/plugins/databox/edittoken.h
deleted file mode 100644
index c1a3335..0000000
--- a/apps/plugins/databox/edittoken.h
+++ /dev/null
@@ -1,97 +0,0 @@
-/***************************************************************************
- * __________ __ ___.
- * Open \______ \ ____ ____ | | _\_ |__ _______ ___
- * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
- * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
- * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
- * \/ \/ \/ \/ \/
- * $Id$
- *
- * Copyright (C) 2005 by Michiel van der Kolk
- *
- * 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 EDITTOKEN_H
-#define EDITTOKEN_H
-
-#define TOKEN_INVALID -1
-#define TOKEN_EOF 0 // EOF
-#define TOKEN_NOT 1 // "not"
-#define TOKEN_AND 2 // "and"
-#define TOKEN_OR 3 // "or"
-#define TOKEN_GT 4 // '>'
-#define TOKEN_GTE 5 // '>='
-#define TOKEN_LT 6 // '<'
-#define TOKEN_LTE 7 // '<='
-#define TOKEN_EQ 8 // '=='
-#define TOKEN_NE 9 // '!='
-#define TOKEN_CONTAINS 10 // "contains"
-#define TOKEN_EQUALS 11 // "equals"
-#define TOKEN_STARTSWITH 12
-#define TOKEN_ENDSWITH 13
-#define TOKEN_LPAREN 14 // '('
-#define TOKEN_RPAREN 15 // ')'
-#define TOKEN_NUM 16 // (0..9)+
-#define TOKEN_NUMIDENTIFIER 17 // year, trackid, bpm, etc.
-#define TOKEN_STRING 18 // (?)+
-#define TOKEN_STRINGIDENTIFIER 19 // album, artist, title, genre ...
-#define TOKEN_SHUFFLE 20
-#define TOKEN_PLAYTIMELIMIT 21
-
-// pseudotokens..
-#define TOKEN_YEAR 118
-#define TOKEN_RATING 119
-#define TOKEN_PLAYCOUNT 120
-#define TOKEN_TITLE 121
-#define TOKEN_ARTIST 122
-#define TOKEN_ALBUM 123
-#define TOKEN_GENRE 124
-#define TOKEN_FILENAME 125
-#define TOKEN_EDIT 126
-#define TOKEN_AUTORATING 127
-#define TOKEN_PLAYTIME 128
-#define TOKEN_TRACKNUM 129
-#define TOKEN_SAMPLERATE 130
-#define TOKEN_BITRATE 131
-
-#define ACCEPT_EOF 0x1
-#define ACCEPT_BOOLOP 0x2
-#define ACCEPT_NUMOP 0x4
-#define ACCEPT_STROP 0x8
-#define ACCEPT_LPAREN 0x10
-#define ACCEPT_RPAREN 0x20
-#define ACCEPT_NUMARG 0x40
-#define ACCEPT_STRARG 0x80
-#define ACCEPT_NOT 0x100
-#define ACCEPT_DELETE 0x200
-
-#define INTVALUE_YEAR 1
-#define INTVALUE_RATING 2
-#define INTVALUE_PLAYCOUNT 3
-#define INTVALUE_AUTORATING 4
-#define INTVALUE_PLAYTIME 5
-#define INTVALUE_TRACKNUM 6
-#define INTVALUE_SAMPLERATE 7
-#define INTVALUE_BITRATE 8
-#define INTVALUE_TITLE 14
-#define INTVALUE_ARTIST 15
-#define INTVALUE_ALBUM 16
-#define INTVALUE_GENRE 17
-#define INTVALUE_FILENAME 18
-
-#define SPELLING_LENGTH 100
-
-struct token {
- signed char kind;
- char spelling[SPELLING_LENGTH + 3];
- long intvalue;
-};
-char *tokentypetostring(int tokentype);
-char *tokentostring(struct token *token);
-void buildtoken(int tokentype,struct token *token);
-#endif