apefile.h
Go to the documentation of this file.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
00028
00029
00030
00031
00032
00033
00034 #ifndef TAGLIB_APEFILE_H
00035 #define TAGLIB_APEFILE_H
00036
00037 #include "tfile.h"
00038 #include "taglib_export.h"
00039 #include "apeproperties.h"
00040
00041 namespace TagLib {
00042
00043 class Tag;
00044
00045 namespace ID3v1 { class Tag; }
00046 namespace APE { class Tag; }
00047
00049
00057 namespace APE {
00058
00060
00068 class TAGLIB_EXPORT File : public TagLib::File
00069 {
00070 public:
00075 enum TagTypes {
00077 NoTags = 0x0000,
00079 ID3v1 = 0x0001,
00081 APE = 0x0002,
00083 AllTags = 0xffff
00084 };
00085
00091 File(FileName file, bool readProperties = true,
00092 Properties::ReadStyle propertiesStyle = Properties::Average);
00093
00097 virtual ~File();
00098
00103 virtual TagLib::Tag *tag() const;
00104
00109 virtual Properties *audioProperties() const;
00110
00117 virtual bool save();
00118
00131 ID3v1::Tag *ID3v1Tag(bool create = false);
00132
00144 APE::Tag *APETag(bool create = false);
00145
00154 void strip(int tags = AllTags);
00155
00156 private:
00157 File(const File &);
00158 File &operator=(const File &);
00159
00160 void read(bool readProperties, Properties::ReadStyle propertiesStyle);
00161 void scan();
00162 long findID3v1();
00163 long findAPE();
00164
00165 class FilePrivate;
00166 FilePrivate *d;
00167 };
00168 }
00169 }
00170
00171 #endif