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 uint year() const;
94 
99  virtual uint 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(uint i);
141 
145  virtual void setTrack(uint i);
146 
152  virtual bool isEmpty() const;
153 
160  AttributeListMap &attributeListMap();
161 
165  void removeItem(const String &name);
166 
171  void setAttribute(const String &name, const Attribute &attribute);
172 
177  void addAttribute(const String &name, const Attribute &attribute);
178 
179  PropertyMap properties() const;
180  void removeUnsupportedProperties(const StringList& properties);
181  PropertyMap setProperties(const PropertyMap &properties);
182 
183  private:
184 
185  class TagPrivate;
186  TagPrivate *d;
187  };
188  }
189 }
190 #endif