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 "tag.h"
30 #include "tlist.h"
31 #include "tmap.h"
32 #include "taglib_export.h"
33 #include "asfattribute.h"
34 
35 namespace TagLib {
36 
37  namespace ASF {
38 
41 
42  class TAGLIB_EXPORT Tag : public TagLib::Tag {
43 
44  friend class File;
45 
46  public:
47 
48  Tag();
49 
50  virtual ~Tag();
51 
55  virtual String title() const;
56 
60  virtual String artist() const;
61 
66  virtual String album() const;
67 
71  virtual String comment() const;
72 
77  virtual String genre() const;
78 
82  virtual String rating() const;
83 
88  virtual String copyright() const;
89 
93  virtual unsigned int year() const;
94 
99  virtual unsigned int track() const;
100 
104  virtual void setTitle(const String &s);
105 
109  virtual void setArtist(const String &s);
110 
115  virtual void setAlbum(const String &s);
116 
120  virtual void setComment(const String &s);
121 
125  virtual void setRating(const String &s);
126 
130  virtual void setCopyright(const String &s);
131 
135  virtual void setGenre(const String &s);
136 
140  virtual void setYear(unsigned int i);
141 
145  virtual void setTrack(unsigned int i);
146 
152  virtual bool isEmpty() const;
153 
157  AttributeListMap &attributeListMap();
158 
163  const AttributeListMap &attributeListMap() const;
164 
168  bool contains(const String &name) const;
169 
173  void removeItem(const String &name);
174 
179  AttributeList attribute(const String &name) const;
180 
185  void setAttribute(const String &name, const Attribute &attribute);
186 
190  void setAttribute(const String &name, const AttributeList &values);
191 
196  void addAttribute(const String &name, const Attribute &attribute);
197 
198  PropertyMap properties() const;
199  void removeUnsupportedProperties(const StringList& properties);
200  PropertyMap setProperties(const PropertyMap &properties);
201 
202  private:
203 
204  class TagPrivate;
205  TagPrivate *d;
206  };
207  }
208 }
209 #endif
A generic, implicitly shared list.
Definition: tlist.h:53
A map for format-independent tag representations.
Definition: tpropertymap.h:108
Definition: tag.h:46
List< Attribute > AttributeList
Definition: asftag.h:39
A wide string class suitable for unicode.
Definition: tstring.h:84
A generic, implicitly shared map.
Definition: tmap.h:43
A list of strings.
Definition: tstringlist.h:45
Definition: asftag.h:42
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
Map< String, AttributeList > AttributeListMap
Definition: asftag.h:40
String TAGLIB_EXPORT genre(int index)
Definition: asffile.h:46
Definition: asfattribute.h:43