TagLib  2.2.1
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 
35 namespace 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 
164  AttributeListMap &attributeListMap();
165 
170  const AttributeListMap &attributeListMap() const;
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 
209  StringList complexPropertyKeys() const override;
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
A generic, implicitly shared list.
Definition: tlist.h:53
A map for format-independent <key,values> tag representations.
Definition: tpropertymap.h:122
A simple, generic interface to common audio metadata fields.
Definition: tag.h:48
A wide string class suitable for unicode.
Definition: tstring.h:82
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55
A generic, implicitly shared map.
Definition: tmap.h:44
A list of strings.
Definition: tstringlist.h:43
An implementation of ASF (WMA) tags.
Definition: asftag.h:44
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
String TAGLIB_EXPORT genre(int index)
An implementation of TagLib::File with ASF specific methods.
Definition: asffile.h:46
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
Attribute of ASF (WMA) metadata.
Definition: asfattribute.h:43