asfpicture.h
Go to the documentation of this file.
/**************************************************************************
copyright : (C) 2010 by Anton Sergunov
email : setosha@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 ASFPICTURE_H
#define ASFPICTURE_H
#include "tstring.h"
#include "tbytevector.h"
#include "tpicturetype.h"
#include "taglib_export.h"
namespace TagLib
{
namespace ASF
{
class TAGLIB_EXPORT Picture {
public:
/*
* This describes the function or content of the picture.
*/
DECLARE_PICTURE_TYPE_ENUM(Type)
Picture();
Picture(const Picture& other);
~Picture();
Picture& operator=(const Picture& other);
void swap(Picture &other) noexcept;
bool isValid() const;
String mimeType() const;
void setMimeType(const String &value);
Type type() const;
void setType(const ASF::Picture::Type& t);
String description() const;
void setDescription(const String &desc);
ByteVector picture() const;
void setPicture(const ByteVector &p);
ByteVector render() const;
int dataSize() const;
#ifndef DO_NOT_DOCUMENT
/* THIS IS PRIVATE, DON'T TOUCH IT! */
void parse(const ByteVector& );
static Picture fromInvalid();
#endif
private:
class PicturePrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::shared_ptr<PicturePrivate> d;
};
} // namespace ASF
} // namespace TagLib
#endif // ASFPICTURE_H
TagLib::ASF::Picture::picture
ByteVector picture() const
TagLib::ASF::Picture::Picture
Picture()
TagLib::ASF::Picture::setMimeType
void setMimeType(const String &value)
TagLib::ASF::Picture::render
ByteVector render() const
TagLib::ASF::Picture::setDescription
void setDescription(const String &desc)
TagLib::ASF::Picture::type
Type type() const
TagLib::ASF::Picture::description
String description() const
TagLib::ASF::Picture::dataSize
int dataSize() const
TagLib::ASF::Picture::setType
void setType(const ASF::Picture::Type &t)
TagLib::ASF::Picture::setPicture
void setPicture(const ByteVector &p)
TagLib::ASF::Picture::mimeType
String mimeType() const
TagLib::ASF::Picture::swap
void swap(Picture &other) noexcept
TagLib::ASF::Picture::isValid
bool isValid() const
TagLib::ByteVector
A byte vector.
Definition tbytevector.h:46
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
TagLib::ASF
An implementation of ASF (WMA) metadata.
Definition asfattribute.h:37
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
tpicturetype.h
tstring.h