| TagLib 1.13 |  |

wavpackfile.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2006 by Lukáš Lalinský
3 email : lalinsky@gmail.com
4
5 copyright : (C) 2004 by Allan Sandfeld Jensen
6 email : kde@carewolf.org
7 (original MPC implementation)
8 ***************************************************************************/
9
10/***************************************************************************
11 * This library is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU Lesser General Public License version *
13 * 2.1 as published by the Free Software Foundation. *
14 * *
15 * This library is distributed in the hope that it will be useful, but *
16 * WITHOUT ANY WARRANTY; without even the implied warranty of *
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
18 * Lesser General Public License for more details. *
19 * *
20 * You should have received a copy of the GNU Lesser General Public *
21 * License along with this library; if not, write to the Free Software *
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
23 * 02110-1301 USA *
24 * *
25 * Alternatively, this file is available under the Mozilla Public *
26 * License Version 1.1. You may obtain a copy of the License at *
27 * http://www.mozilla.org/MPL/ *
28 ***************************************************************************/
29
30#ifndef TAGLIB_WVFILE_H
31#define TAGLIB_WVFILE_H
32
33#include "tfile.h"
34#include "taglib_export.h"
35#include "wavpackproperties.h"
36
37 namespace TagLib {
38
39 class Tag;
40
41 namespace ID3v1 { class Tag; }
42 namespace APE { class Tag; }
43
45
53 namespace WavPack {
54
56
64 class TAGLIB_EXPORT File : public TagLib::File
65 {
66 public:
71 enum TagTypes {
73 NoTags = 0x0000,
75 ID3v1 = 0x0001,
77 APE = 0x0002,
79 AllTags = 0xffff
80 };
81
87 File(FileName file, bool readProperties = true,
88 Properties::ReadStyle propertiesStyle = Properties::Average);
89
98 File(IOStream *stream, bool readProperties = true,
99 Properties::ReadStyle propertiesStyle = Properties::Average);
100
104 virtual ~File();
105
110 virtual TagLib::Tag *tag() const;
111
117 PropertyMap properties() const;
118
119 void removeUnsupportedProperties(const StringList &properties);
120
126 PropertyMap setProperties(const PropertyMap&);
127
132 virtual Properties *audioProperties() const;
133
139 virtual bool save();
140
158 ID3v1::Tag *ID3v1Tag(bool create = false);
159
177 APE::Tag *APETag(bool create = false);
178
187 void strip(int tags = AllTags);
188
194 bool hasID3v1Tag() const;
195
201 bool hasAPETag() const;
202
209 static bool isSupported(IOStream *stream);
210
211 private:
212 File(const File &);
213 File &operator=(const File &);
214
215 void read(bool readProperties);
216
217 class FilePrivate;
218 FilePrivate *d;
219 };
220 }
221}
222
223#endif
TagLib::APE::Tag
An APE tag implementation.
Definition: apetag.h:58
TagLib::AudioProperties::ReadStyle
ReadStyle
Definition: audioproperties.h:53
TagLib::AudioProperties::Average
@ Average
Read more of the file and make better values guesses.
Definition: audioproperties.h:57
TagLib::File
A file class with some useful methods for tag manipulation.
Definition: tfile.h:51
TagLib::ID3v1::Tag
The main class in the ID3v1 implementation.
Definition: id3v1tag.h:106
TagLib::IOStream
An abstract class that provides operations on a sequence of bytes.
Definition: tiostream.h:63
TagLib::PropertyMap
A map for format-independent <key,valuelist> tag representations.
Definition: tpropertymap.h:119
TagLib::StringList
A list of strings.
Definition: tstringlist.h:46
TagLib::Tag
Definition: tag.h:47
TagLib::WavPack::File
An implementation of TagLib::File with WavPack specific methods.
Definition: wavpackfile.h:65
TagLib::WavPack::File::File
File(FileName file, bool readProperties=true, Properties::ReadStyle propertiesStyle=Properties::Average)
TagLib::WavPack::File::properties
PropertyMap properties() const
TagLib::WavPack::File::strip
void strip(int tags=AllTags)
TagLib::WavPack::File::TagTypes
TagTypes
Definition: wavpackfile.h:71
TagLib::WavPack::File::isSupported
static bool isSupported(IOStream *stream)
TagLib::WavPack::File::hasID3v1Tag
bool hasID3v1Tag() const
TagLib::WavPack::File::tag
virtual TagLib::Tag * tag() const
TagLib::WavPack::File::~File
virtual ~File()
TagLib::WavPack::File::removeUnsupportedProperties
void removeUnsupportedProperties(const StringList &properties)
TagLib::WavPack::File::hasAPETag
bool hasAPETag() const
TagLib::WavPack::File::APETag
APE::Tag * APETag(bool create=false)
TagLib::WavPack::File::audioProperties
virtual Properties * audioProperties() const
TagLib::WavPack::File::File
File(IOStream *stream, bool readProperties=true, Properties::ReadStyle propertiesStyle=Properties::Average)
TagLib::WavPack::File::setProperties
PropertyMap setProperties(const PropertyMap &)
TagLib::WavPack::File::ID3v1Tag
ID3v1::Tag * ID3v1Tag(bool create=false)
TagLib::WavPack::File::save
virtual bool save()
TagLib::WavPack::Properties
An implementation of audio property reading for WavPack.
Definition: wavpackproperties.h:52
TagLib
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
TagLib::FileName
const char * FileName
Definition: tiostream.h:57
taglib_export.h
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
tfile.h
wavpackproperties.h