TagLib API Documentation
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
31namespace TagLib {
32 namespace Shorten {
33
35
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
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:123
A Shorten file tag implementation.
Definition shortentag.h:42
String album() const override
Tag(const Tag &)=delete
PropertyMap setProperties(const PropertyMap &) override
unsigned int track() const override
void setYear(unsigned int year) override
String comment() const override
void setComment(const String &comment) override
String title() const override
Tag & operator=(const Tag &)=delete
unsigned int year() const override
void setTrack(unsigned int track) override
String artist() const override
void setGenre(const String &genre) override
String genre() const override
void setTitle(const String &title) override
void setAlbum(const String &album) override
PropertyMap properties() const override
void setArtist(const String &artist) override
A wide string class suitable for unicode.
Definition tstring.h:83
A simple, generic interface to common audio metadata fields.
Definition tag.h:49
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
#define TAGLIB_EXPORT
Definition taglib_export.h:40
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition taglib_export.h:55