TagLib  2.2.1
shortentag.h
Go to the documentation of this file.
1 /***************************************************************************
2  copyright : (C) 2020-2024 Stephen F. Booth
3  email : me@sbooth.org
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_SHORTENTAG_H
27 #define TAGLIB_SHORTENTAG_H
28 
29 #include "tag.h"
30 
31 namespace TagLib {
32  namespace Shorten {
33 
35 
41  class TAGLIB_EXPORT Tag : public TagLib::Tag
42  {
43  public:
44  Tag();
45  ~Tag() override;
46 
47  Tag(const Tag &) = delete;
48  Tag &operator=(const Tag &) = delete;
49 
53  String title() const override;
54 
58  String artist() const override;
59 
63  String album() const override;
64 
68  String comment() const override;
69 
73  String genre() const override;
74 
78  unsigned int year() const override;
79 
83  unsigned int track() const override;
84 
88  void setTitle(const String &title) override;
89 
93  void setArtist(const String &artist) override;
94 
98  void setAlbum(const String &album) override;
99 
103  void setComment(const String &comment) override;
104 
108  void setGenre(const String &genre) override;
109 
113  void setYear(unsigned int year) override;
114 
118  void setTrack(unsigned int track) override;
119 
123  PropertyMap properties() const override;
124 
128  PropertyMap setProperties(const PropertyMap &) override;
129 
130  private:
131  class TagPrivate;
133  std::unique_ptr<TagPrivate> d;
134  };
135 
136  } // namespace Shorten
137 } // namespace TagLib
138 
139 #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 Shorten file tag implementation.
Definition: shortentag.h:41
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
String TAGLIB_EXPORT genre(int index)
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41