00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
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,
00056 ePending = 1,
00057 eUnrecognized = 2,
00058 eRecognized = 3,
00059 ePUIDLookup = 4,
00060 ePUIDCollision = 5,
00061 eFileLookup = 6,
00062 eUserSelection = 7,
00063 eVerified = 8,
00064 eSaved = 9,
00065 eDeleted = 10,
00066 eError = 11,
00067
00068 eLastStatus = 12
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
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