Main Page | Class List | File List | Class Members | File Members

defs.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------- 00002 00003 libtunepimp -- The MusicBrainz tagging library. 00004 Let a thousand taggers bloom! 00005 00006 Copyright (C) Robert Kaye 2003 00007 00008 This file is part of libtunepimp. 00009 00010 libtunepimp is free software; you can redistribute it and/or modify 00011 it under the terms of the GNU General Public License as published by 00012 the Free Software Foundation; either version 2 of the License, or 00013 (at your option) any later version. 00014 00015 libtunepimp is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 You should have received a copy of the GNU General Public License 00021 along with libtunepimp; if not, write to the Free Software 00022 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 00024 $Id: defs.h,v 1.9 2004/02/05 10:37:39 robert Exp $ 00025 00026 ----------------------------------------------------------------------------*/ 00027 #ifndef DEFS_H 00028 #define DEFS_H 00029 00030 typedef enum 00031 { 00032 tpOk, 00033 tpTooManyTRMs, 00034 tpNoUserInfo, 00035 tpLookupError, 00036 tpSubmitError, 00037 tpInvalidIndex, 00038 tpInvalidObject, 00039 00040 tpErrorLast 00041 } TPError; 00042 00043 typedef enum 00044 { 00045 tpFileAdded, 00046 tpFileChanged, 00047 tpFileRemoved, 00048 tpWriteTagsComplete, 00049 00050 tpCallbackLast 00051 } TPCallbackEnum; 00052 00053 typedef enum 00054 { 00055 eUnrecognized = 0, // unrecognized 00056 eRecognized = 1, // Recognized and previously saved 00057 ePending = 2, // pending trm calculation 00058 eTRMLookup = 3, // trm done, pending trm lookup 00059 eTRMCollision = 4, // trm done, pending trm lookup 00060 eFileLookup = 5, // trm done, no matches, pending file lookup 00061 eUserSelection = 6, // file lookup done, needs user selection 00062 eVerified = 7, // User verified, about to write changes to disk 00063 eSaved = 8, // File was saved 00064 eDeleted = 9, // to be deleted, waiting for refcount == 0 00065 eError = 10, // Error 00066 00067 eLastStatus = 11 // Just a placeholder -- don't delete 00068 } TPFileStatus; 00069 00070 typedef enum 00071 { 00072 eNone, 00073 eArtistList, 00074 eAlbumList, 00075 eTrackList, 00076 eMatchedTrack 00077 } TPResultType; 00078 00079 typedef enum 00080 { 00081 eAlbumType_Album = 0, 00082 eAlbumType_Single = 1, 00083 eAlbumType_EP = 2, 00084 eAlbumType_Compilation = 3, 00085 eAlbumType_Soundtrack = 4, 00086 eAlbumType_Spokenword = 5, 00087 eAlbumType_Interview = 6, 00088 eAlbumType_Audiobook = 7, 00089 eAlbumType_Live = 8, 00090 eAlbumType_Remix = 9, 00091 eAlbumType_Other = 10, 00092 eAlbumType_Error = 11 00093 } TPAlbumType; 00094 00095 00096 typedef enum 00097 { 00098 eAlbumStatus_Official, 00099 eAlbumStatus_Promotion, 00100 eAlbumStatus_Bootleg, 00101 eAlbumStatus_Error 00102 } TPAlbumStatus; 00103 00104 typedef enum 00105 { 00106 eIdle = 0, 00107 eLowest = 1, 00108 eLow = 2, 00109 eNormal = 3, 00110 eHigh = 4, 00111 eHigher = 5, 00112 eTimeCritical = 6 00113 } TPThreadPriorityEnum; 00114 00115 00116 /* Thread definitions */ 00117 #define TP_THREAD_NONE 0x0000 00118 #define TP_THREAD_LOOKUPTRM 0x0001 00119 #define TP_THREAD_LOOKUPFILE 0x0002 00120 #define TP_THREAD_WRITE 0x0004 00121 #define TP_THREAD_ALL 0xFFFF 00122 00123 #endif

Generated on Tue Sep 21 19:09:18 2004 for MusicBrainz Tunepimp Library by doxygen 1.3.7