TagLib  2.2.1
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  namespace Mod {
33 
35 
48  class TAGLIB_EXPORT Tag : public TagLib::Tag
49  {
50  public:
51  Tag();
52  ~Tag() override;
53 
54  Tag(const Tag &) = delete;
55  Tag &operator=(const Tag &) = delete;
56 
61  String title() const override;
62 
66  String artist() const override;
67 
71  String album() const override;
72 
78  String comment() const override;
79 
83  String genre() const override;
84 
88  unsigned int year() const override;
89 
93  unsigned int track() const override;
94 
102  String trackerName() const;
103 
112  void setTitle(const String &title) override;
113 
117  void setArtist(const String &artist) override;
118 
122  void setAlbum(const String &album) override;
123 
141  void setComment(const String &comment) override;
142 
146  void setGenre(const String &genre) override;
147 
151  void setYear(unsigned int year) override;
152 
156  void setTrack(unsigned int track) override;
157 
168  void setTrackerName(const String &trackerName);
169 
174  PropertyMap properties() const override;
175 
184  PropertyMap setProperties(const PropertyMap &) override;
185 
186  private:
187  class TagPrivate;
189  std::unique_ptr<TagPrivate> d;
190  };
191  } // namespace Mod
192 } // namespace TagLib
193 #endif
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
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
A module file tag implementation.
Definition: modtag.h:48
String TAGLIB_EXPORT genre(int index)
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41