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
00092 File(FileName file, bool readProperties = true,
00093 Properties::ReadStyle propertiesStyle = Properties::Average);
00094
00104 File(IOStream *stream, bool readProperties = true,
00105 Properties::ReadStyle propertiesStyle = Properties::Average);
00106
00110 virtual ~File();
00111
00116 virtual TagLib::Tag *tag() const;
00117
00123 PropertyMap properties() const;
00124
00129 void removeUnsupportedProperties(const StringList &properties);
00130
00136 PropertyMap setProperties(const PropertyMap &);
00137
00142 virtual Properties *audioProperties() const;
00143
00150 virtual bool save();
00151
00169 ID3v1::Tag *ID3v1Tag(bool create = false);
00170
00188 APE::Tag *APETag(bool create = false);
00189
00198 void strip(int tags = AllTags);
00199
00205 bool hasAPETag() const;
00206
00212 bool hasID3v1Tag() const;
00213
00214 private:
00215 File(const File &);
00216 File &operator=(const File &);
00217
00218 void read(bool readProperties);
00219
00220 class FilePrivate;
00221 FilePrivate *d;
00222 };
00223 }
00224 }
00225
00226 #endif