mpcfile.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 #ifndef TAGLIB_MPCFILE_H
00027 #define TAGLIB_MPCFILE_H
00028
00029 #include "taglib_export.h"
00030 #include "tfile.h"
00031 #include "tag.h"
00032
00033 #include "mpcproperties.h"
00034
00035 #include "tlist.h"
00036
00037 namespace TagLib {
00038
00039 class Tag;
00040
00041 namespace ID3v1 { class Tag; }
00042 namespace APE { class Tag; }
00043
00045
00054 namespace MPC {
00055
00057
00066 class TAGLIB_EXPORT File : public TagLib::File
00067 {
00068 public:
00073 enum TagTypes {
00075 NoTags = 0x0000,
00077 ID3v1 = 0x0001,
00079 ID3v2 = 0x0002,
00081 APE = 0x0004,
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
00125 void removeUnsupportedProperties(const StringList &properties);
00126
00132 PropertyMap setProperties(const PropertyMap &);
00133
00138 virtual Properties *audioProperties() const;
00139
00145 virtual bool save();
00146
00164 ID3v1::Tag *ID3v1Tag(bool create = false);
00165
00184 APE::Tag *APETag(bool create = false);
00185
00195 void strip(int tags = AllTags);
00196
00201 void remove(int tags = AllTags);
00202
00208 bool hasID3v1Tag() const;
00209
00215 bool hasAPETag() const;
00216
00217 private:
00218 File(const File &);
00219 File &operator=(const File &);
00220
00221 void read(bool readProperties);
00222
00223 class FilePrivate;
00224 FilePrivate *d;
00225 };
00226 }
00227 }
00228
00229 #endif