tpicturetype.h
Go to the documentation of this file.
/***************************************************************************
copyright : (C) 2023 by Urs Fleisch
email : ufleisch@users.sourceforge.net
***************************************************************************/
/***************************************************************************
* This library is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License version *
* 2.1 as published by the Free Software Foundation. *
* *
* This library is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
* 02110-1301 USA *
* *
* Alternatively, this file is available under the Mozilla Public *
* License Version 1.1. You may obtain a copy of the License at *
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#ifndef TAGLIB_PICTURETYPE_H
#define TAGLIB_PICTURETYPE_H
// THIS FILE IS NOT A PART OF THE TAGLIB API
#ifndef DO_NOT_DOCUMENT // tell Doxygen not to document this header
#include "taglib_export.h"
#define DECLARE_PICTURE_TYPE_ENUM(name) \
enum name { \
\
Other = 0x00, \
\
FileIcon = 0x01, \
\
OtherFileIcon = 0x02, \
\
FrontCover = 0x03, \
\
BackCover = 0x04, \
\
LeafletPage = 0x05, \
\
Media = 0x06, \
\
LeadArtist = 0x07, \
\
Artist = 0x08, \
\
Conductor = 0x09, \
\
Band = 0x0A, \
\
Composer = 0x0B, \
\
Lyricist = 0x0C, \
\
RecordingLocation = 0x0D, \
\
DuringRecording = 0x0E, \
\
DuringPerformance = 0x0F, \
\
MovieScreenCapture = 0x10, \
\
ColouredFish = 0x11, \
\
Illustration = 0x12, \
\
BandLogo = 0x13, \
\
PublisherLogo = 0x14 \
}; \
static TagLib::String typeToString(name type) { \
return TagLib::Utils::pictureTypeToString(type); \
} \
static name typeFromString(const TagLib::String &str) { \
return static_cast<name>( \
TagLib::Utils::pictureTypeFromString(str)); \
}
namespace TagLib {
class String;
namespace Utils {
String TAGLIB_EXPORT pictureTypeToString(int type);
int TAGLIB_EXPORT pictureTypeFromString(const String& str);
} // namespace Utils
} // namespace TagLib
#endif
#endif
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
TagLib
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
taglib_export.h
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition taglib_export.h:40