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
00153 virtual bool save();
00154
00172 ID3v1::Tag *ID3v1Tag(bool create = false);
00173
00191 APE::Tag *APETag(bool create = false);
00192
00201 void strip(int tags = AllTags);
00202
00208 bool hasAPETag() const;
00209
00215 bool hasID3v1Tag() const;
00216
00217 private:
00218 File(const File &);
00219 File &operator=(const File &);
00220
00221 void read(bool readProperties);
00222 long findAPE();
00223 long findID3v1();
00224 long findID3v2();
00225
00226 class FilePrivate;
00227 FilePrivate *d;
00228 };
00229 }
00230 }
00231
00232 #endif