TagLib API Documentation
tpicturetype.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2023 by Urs Fleisch
3 email : ufleisch@users.sourceforge.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_PICTURETYPE_H
27#define TAGLIB_PICTURETYPE_H
28
29// THIS FILE IS NOT A PART OF THE TAGLIB API
30
31#ifndef DO_NOT_DOCUMENT // tell Doxygen not to document this header
32
33#include "taglib_export.h"
34
48#define DECLARE_PICTURE_TYPE_ENUM(name) \
49enum name { \
50 \
51 Other = 0x00, \
52 \
53 FileIcon = 0x01, \
54 \
55 OtherFileIcon = 0x02, \
56 \
57 FrontCover = 0x03, \
58 \
59 BackCover = 0x04, \
60 \
61 LeafletPage = 0x05, \
62 \
63 Media = 0x06, \
64 \
65 LeadArtist = 0x07, \
66 \
67 Artist = 0x08, \
68 \
69 Conductor = 0x09, \
70 \
71 Band = 0x0A, \
72 \
73 Composer = 0x0B, \
74 \
75 Lyricist = 0x0C, \
76 \
77 RecordingLocation = 0x0D, \
78 \
79 DuringRecording = 0x0E, \
80 \
81 DuringPerformance = 0x0F, \
82 \
83 MovieScreenCapture = 0x10, \
84 \
85 ColouredFish = 0x11, \
86 \
87 Illustration = 0x12, \
88 \
89 BandLogo = 0x13, \
90 \
91 PublisherLogo = 0x14 \
92}; \
93static TagLib::String typeToString(name type) { \
94 return TagLib::Utils::pictureTypeToString(type); \
95} \
96static name typeFromString(const TagLib::String &str) { \
97 return static_cast<name>( \
98 TagLib::Utils::pictureTypeFromString(str)); \
99}
100
101namespace TagLib {
102
103 class String;
104
105 namespace Utils {
106
110 String TAGLIB_EXPORT pictureTypeToString(int type);
111
115 int TAGLIB_EXPORT pictureTypeFromString(const String& str);
116
117 } // namespace Utils
118} // namespace TagLib
119
120#endif
121
122#endif
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
#define TAGLIB_EXPORT
Definition: taglib_export.h:40