flacpicture.h
Go to the documentation of this file.
/**************************************************************************
copyright : (C) 2010 by Lukáš Lalinský
email : lalinsky@gmail.com
**************************************************************************/
/***************************************************************************
* 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_FLACPICTURE_H
#define TAGLIB_FLACPICTURE_H
#include "tlist.h"
#include "tstring.h"
#include "tbytevector.h"
#include "tpicturetype.h"
#include "taglib_export.h"
#include "flacmetadatablock.h"
namespace TagLib {
namespace FLAC {
class TAGLIB_EXPORT Picture : public MetadataBlock
{
public:
/*
* This describes the function or content of the picture.
*/
DECLARE_PICTURE_TYPE_ENUM(Type)
Picture();
Picture(const ByteVector &data);
~Picture() override;
Picture(const Picture &item) = delete;
Picture &operator=(const Picture &item) = delete;
Type type() const;
void setType(Type type);
String mimeType() const;
void setMimeType(const String &mimeType);
String description() const;
void setDescription(const String &description);
int width() const;
void setWidth(int width);
int height() const;
void setHeight(int height);
int colorDepth() const;
void setColorDepth(int colorDepth);
int numColors() const;
void setNumColors(int numColors);
ByteVector data() const;
void setData(const ByteVector &data);
int code() const override;
ByteVector render() const override;
bool parse(const ByteVector &data);
private:
class PicturePrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<PicturePrivate> d;
};
using PictureList = List<Picture>;
} // namespace FLAC
} // namespace TagLib
#endif
TagLib::ByteVector
A byte vector.
Definition tbytevector.h:46
TagLib::FLAC::MetadataBlock::MetadataBlock
MetadataBlock()
TagLib::FLAC::Picture
FLAC picture.
Definition flacpicture.h:40
TagLib::FLAC::Picture::setHeight
void setHeight(int height)
TagLib::FLAC::Picture::mimeType
String mimeType() const
TagLib::FLAC::Picture::render
ByteVector render() const override
TagLib::FLAC::Picture::data
ByteVector data() const
TagLib::FLAC::Picture::Picture
Picture()
TagLib::FLAC::Picture::code
int code() const override
TagLib::FLAC::Picture::colorDepth
int colorDepth() const
TagLib::FLAC::Picture::width
int width() const
TagLib::FLAC::Picture::numColors
int numColors() const
TagLib::FLAC::Picture::setDescription
void setDescription(const String &description)
TagLib::FLAC::Picture::setColorDepth
void setColorDepth(int colorDepth)
TagLib::FLAC::Picture::parse
bool parse(const ByteVector &data)
TagLib::FLAC::Picture::setData
void setData(const ByteVector &data)
TagLib::FLAC::Picture::height
int height() const
TagLib::FLAC::Picture::setWidth
void setWidth(int width)
TagLib::FLAC::Picture::setNumColors
void setNumColors(int numColors)
TagLib::FLAC::Picture::setMimeType
void setMimeType(const String &mimeType)
TagLib::FLAC::Picture::setType
void setType(Type type)
TagLib::FLAC::Picture::description
String description() const
TagLib::FLAC::Picture::type
Type type() const
TagLib::List
A generic, implicitly shared list.
Definition tlist.h:54
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
flacmetadatablock.h
TagLib::FLAC
An implementation of FLAC metadata.
Definition flacfile.h:54
TagLib::FLAC::PictureList
List< Picture > PictureList
Definition flacpicture.h:160
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
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition taglib_export.h:55
tbytevector.h
tlist.h
tpicturetype.h
tstring.h