modtag.h
Go to the documentation of this file.
1 /***************************************************************************
2  copyright : (C) 2011 by Mathias Panzenböck
3  email : grosser.meister.morti@gmx.net
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_MODTAG_H
27 #define TAGLIB_MODTAG_H
28 
29 #include "tag.h"
30 
31 namespace TagLib {
32 
33  namespace Mod {
34 
47  class TAGLIB_EXPORT Tag : public TagLib::Tag
48  {
49  public:
50  Tag();
51  virtual ~Tag();
52 
57  virtual String title() const;
58 
62  virtual String artist() const;
63 
67  virtual String album() const;
68 
74  virtual String comment() const;
75 
79  virtual String genre() const;
80 
84  virtual unsigned int year() const;
85 
89  virtual unsigned int track() const;
90 
98  String trackerName() const;
99 
108  virtual void setTitle(const String &title);
109 
113  virtual void setArtist(const String &artist);
114 
118  virtual void setAlbum(const String &album);
119 
137  virtual void setComment(const String &comment);
138 
142  virtual void setGenre(const String &genre);
143 
147  virtual void setYear(unsigned int year);
148 
152  virtual void setTrack(unsigned int track);
153 
164  void setTrackerName(const String &trackerName);
165 
170  PropertyMap properties() const;
171 
180  PropertyMap setProperties(const PropertyMap &);
181 
182  private:
183  Tag(const Tag &);
184  Tag &operator=(const Tag &);
185 
186  class TagPrivate;
187  TagPrivate *d;
188  };
189 
190  }
191 
192 }
193 
194 #endif
A map for format-independent tag representations.
Definition: tpropertymap.h:108
Definition: tag.h:46
A wide string class suitable for unicode.
Definition: tstring.h:84
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
Definition: modtag.h:47
String TAGLIB_EXPORT genre(int index)