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, *
19  * MA 02110-1301 USA *
20  ***************************************************************************/
21 
22 #ifndef TAGLIB_MODTAG_H
23 #define TAGLIB_MODTAG_H
24 
25 #include "tag.h"
26 
27 namespace TagLib {
28 
29  namespace Mod {
30 
43  class TAGLIB_EXPORT Tag : public TagLib::Tag
44  {
45  public:
46  Tag();
47  virtual ~Tag();
48 
53  String title() const;
54 
58  String artist() const;
59 
63  String album() const;
64 
70  String comment() const;
71 
75  String genre() const;
76 
80  uint year() const;
81 
85  uint track() const;
86 
94  String trackerName() const;
95 
104  void setTitle(const String &title);
105 
109  void setArtist(const String &artist);
110 
114  void setAlbum(const String &album);
115 
133  void setComment(const String &comment);
134 
138  void setGenre(const String &genre);
139 
143  void setYear(uint year);
144 
148  void setTrack(uint track);
149 
160  void setTrackerName(const String &trackerName);
161 
166  PropertyMap properties() const;
167 
176  PropertyMap setProperties(const PropertyMap &);
177 
178  private:
179  Tag(const Tag &);
180  Tag &operator=(const Tag &);
181 
182  class TagPrivate;
183  TagPrivate *d;
184  };
185 
186  }
187 
188 }
189 
190 #endif