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 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,
00056 eRecognized = 1,
00057 ePending = 2,
00058 eTRMLookup = 3,
00059 eTRMCollision = 4,
00060 eFileLookup = 5,
00061 eUserSelection = 6,
00062 eVerified = 7,
00063 eSaved = 8,
00064 eDeleted = 9,
00065 eError = 10,
00066
00067 eLastStatus = 11
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
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