TagLib API Documentation
asftag.h
Go to the documentation of this file.
1/**************************************************************************
2 copyright : (C) 2005-2007 by Lukáš Lalinský
3 email : lalinsky@gmail.com
4 **************************************************************************/
5
6/***************************************************************************
7 * This library is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU Lesser General Public License version *
9 * 2.1 as published by the Free Software Foundation. *
10 * *
11 * This library is distributed in the hope that it will be useful, but *
12 * WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14 * Lesser General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Lesser General Public *
17 * License along with this library; if not, write to the Free Software *
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
19 * 02110-1301 USA *
20 * *
21 * Alternatively, this file is available under the Mozilla Public *
22 * License Version 1.1. You may obtain a copy of the License at *
23 * http://www.mozilla.org/MPL/ *
24 ***************************************************************************/
25
26#ifndef TAGLIB_ASFTAG_H
27#define TAGLIB_ASFTAG_H
28
29#include "tlist.h"
30#include "tmap.h"
31#include "taglib_export.h"
32#include "tag.h"
33#include "asfattribute.h"
34
35namespace TagLib {
36
37 namespace ASF {
38
41
43
44 class TAGLIB_EXPORT Tag : public TagLib::Tag {
45
46 friend class File;
47
48 public:
49
50 Tag();
51
52 ~Tag() override;
53
54 Tag(const Tag &) = delete;
55 Tag &operator=(const Tag &) = delete;
56
60 String title() const override;
61
65 String artist() const override;
66
71 String album() const override;
72
76 String comment() const override;
77
82 String genre() const override;
83
87 virtual String rating() const;
88
93 virtual String copyright() const;
94
98 unsigned int year() const override;
99
104 unsigned int track() const override;
105
109 void setTitle(const String &value) override;
110
114 void setArtist(const String &value) override;
115
120 void setAlbum(const String &value) override;
121
125 void setComment(const String &value) override;
126
130 virtual void setRating(const String &value);
131
135 virtual void setCopyright(const String &value);
136
140 void setGenre(const String &value) override;
141
145 void setYear(unsigned int value) override;
146
150 void setTrack(unsigned int value) override;
151
157 bool isEmpty() const override;
158
165
171
175 bool contains(const String &key) const;
176
180 void removeItem(const String &key);
181
186 AttributeList attribute(const String &name) const;
187
192 void setAttribute(const String &name, const Attribute &attribute);
193
197 void setAttribute(const String &name, const AttributeList &values);
198
203 void addAttribute(const String &name, const Attribute &attribute);
204
205 PropertyMap properties() const override;
206 void removeUnsupportedProperties(const StringList &props) override;
207 PropertyMap setProperties(const PropertyMap &props) override;
208
210 List<VariantMap> complexProperties(const String &key) const override;
211 bool setComplexProperties(const String &key, const List<VariantMap> &value) override;
212
213 private:
214
215 class TagPrivate;
217 std::unique_ptr<TagPrivate> d;
218 };
219 } // namespace ASF
220} // namespace TagLib
221#endif
Attribute of ASF (WMA) metadata.
Definition: asfattribute.h:44
An implementation of TagLib::File with ASF specific methods.
Definition: asffile.h:47
An implementation of ASF (WMA) tags.
Definition: asftag.h:44
void removeUnsupportedProperties(const StringList &props) override
AttributeList attribute(const String &name) const
void setAlbum(const String &value) override
virtual String rating() const
void setTrack(unsigned int value) override
StringList complexPropertyKeys() const override
~Tag() override
bool contains(const String &key) const
void setArtist(const String &value) override
void setGenre(const String &value) override
Tag(const Tag &)=delete
bool isEmpty() const override
void setTitle(const String &value) override
void addAttribute(const String &name, const Attribute &attribute)
virtual void setRating(const String &value)
String title() const override
void setYear(unsigned int value) override
bool setComplexProperties(const String &key, const List< VariantMap > &value) override
void setAttribute(const String &name, const AttributeList &values)
void removeItem(const String &key)
Tag & operator=(const Tag &)=delete
unsigned int track() const override
String genre() const override
List< VariantMap > complexProperties(const String &key) const override
PropertyMap properties() const override
PropertyMap setProperties(const PropertyMap &props) override
virtual void setCopyright(const String &value)
const AttributeListMap & attributeListMap() const
String artist() const override
void setComment(const String &value) override
String album() const override
void setAttribute(const String &name, const Attribute &attribute)
AttributeListMap & attributeListMap()
virtual String copyright() const
String comment() const override
unsigned int year() const override
A generic, implicitly shared list.
Definition: tlist.h:54
A generic, implicitly shared map.
Definition: tmap.h:45
A map for format-independent <key,values> tag representations.
Definition: tpropertymap.h:123
A list of strings.
Definition: tstringlist.h:44
A wide string class suitable for unicode.
Definition: tstring.h:83
A simple, generic interface to common audio metadata fields.
Definition: tag.h:49
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55