MusicBrainz Tunepimp Library 0.5.3

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 7216 2006-04-14 23:10:49Z robert $
00025 
00026 ----------------------------------------------------------------------------*/
00027 #ifndef DEFS_H
00028 #define DEFS_H
00029 
00030 typedef enum 
00031 {
00032     tpOk,
00033     tpTooManyPUIDs,
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     eMetadataRead = 0,     // pending metadata read
00056     ePending = 1,          // pending puid calculation
00057     eUnrecognized = 2,     // unrecognized
00058     eRecognized = 3,       // Recognized and previously saved
00059     ePUIDLookup = 4,        // puid done, pending puid lookup
00060     ePUIDCollision = 5,     // puid done, pending puid lookup
00061     eFileLookup = 6,       // puid done, no matches, pending file lookup
00062     eUserSelection = 7,    // file lookup done, needs user selection
00063     eVerified = 8,         // User verified, about to write changes to disk 
00064     eSaved = 9,            // File was saved
00065     eDeleted = 10,          // to be deleted, waiting for refcount == 0
00066     eError = 11,            // Error
00067 
00068     eLastStatus = 12       // Just a placeholder -- don't delete
00069 } TPFileStatus;
00070 
00071 typedef enum
00072 {
00073     eNone,
00074     eArtistList,
00075     eAlbumList,
00076     eTrackList,
00077     eMatchedTrack
00078 } TPResultType;
00079 
00080 typedef enum 
00081 {
00082     eAlbumType_Album        = 0,
00083     eAlbumType_Single       = 1,
00084     eAlbumType_EP           = 2,
00085     eAlbumType_Compilation  = 3,
00086     eAlbumType_Soundtrack   = 4,
00087     eAlbumType_Spokenword   = 5,
00088     eAlbumType_Interview    = 6,
00089     eAlbumType_Audiobook    = 7,
00090     eAlbumType_Live         = 8,
00091     eAlbumType_Remix        = 9,
00092     eAlbumType_Other        = 10,
00093     eAlbumType_Error        = 11
00094 } TPAlbumType;
00095 
00096 
00097 typedef enum 
00098 {
00099     eAlbumStatus_Official,
00100     eAlbumStatus_Promotion,
00101     eAlbumStatus_Bootleg,
00102     eAlbumStatus_Error
00103 } TPAlbumStatus;
00104 
00105 typedef enum
00106 {
00107     eLatin1,
00108     eUTF8,
00109     eUTF16,
00110     eEncodingError
00111 } TPID3Encoding;
00112 
00113 typedef enum 
00114 {
00115     eIdle = 0,
00116     eLowest = 1,
00117     eLow = 2,
00118     eNormal = 3,
00119     eHigh = 4,
00120     eHigher = 5,
00121     eTimeCritical = 6
00122 } TPThreadPriorityEnum;
00123 
00124 
00125 /* Thread definitions */
00126 #define TP_THREAD_NONE        0x0000
00127 #define TP_THREAD_LOOKUPPUID   0x0001
00128 #define TP_THREAD_LOOKUPFILE  0x0002
00129 #define TP_THREAD_WRITE       0x0004
00130 #define TP_THREAD_READ        0x0008
00131 #define TP_THREAD_ANALYZER    0x0010
00132 #define TP_THREAD_ALL         0xFFFF
00133 
00134 
00135 #define TP_NONALBUMTRACKS_NAME "[non-album tracks]"
00136 
00137 #endif