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
00102 File(IOStream *stream, bool readProperties = true,
00103 Properties::ReadStyle propertiesStyle = Properties::Average);
00104
00108 virtual ~File();
00109
00114 virtual TagLib::Tag *tag() const;
00115
00121 PropertyMap properties() const;
00122
00127 void removeUnsupportedProperties(const StringList &properties);
00128
00134 PropertyMap setProperties(const PropertyMap &);
00139 virtual Properties *audioProperties() const;
00140
00147 virtual bool save();
00148
00161 ID3v1::Tag *ID3v1Tag(bool create = false);
00162
00174 APE::Tag *APETag(bool create = false);
00175
00184 void strip(int tags = AllTags);
00185
00186 private:
00187 File(const File &);
00188 File &operator=(const File &);
00189
00190 void read(bool readProperties, Properties::ReadStyle propertiesStyle);
00191 void scan();
00192 long findID3v1();
00193 long findAPE();
00194
00195 class FilePrivate;
00196 FilePrivate *d;
00197 };
00198 }
00199 }
00200
00201 #endif