generalencapsulatedobjectframe.h
Go to the documentation of this file.
/***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
copyright : (C) 2006 by Aaron VonderHaar
email : avh4@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_GENERALENCAPSULATEDOBJECT_H
#define TAGLIB_GENERALENCAPSULATEDOBJECT_H
#include "taglib_export.h"
#include "id3v2frame.h"
namespace TagLib {
namespace ID3v2 {
class TAGLIB_EXPORT GeneralEncapsulatedObjectFrame : public Frame
{
friend class FrameFactory;
public:
GeneralEncapsulatedObjectFrame();
explicit GeneralEncapsulatedObjectFrame(const ByteVector &data);
~GeneralEncapsulatedObjectFrame() override;
GeneralEncapsulatedObjectFrame(const GeneralEncapsulatedObjectFrame &) = delete;
GeneralEncapsulatedObjectFrame &operator=(const GeneralEncapsulatedObjectFrame &) = delete;
String toString() const override;
StringList toStringList() const override;
String::Type textEncoding() const;
void setTextEncoding(String::Type encoding);
String mimeType() const;
void setMimeType(const String &type);
String fileName() const;
void setFileName(const String &name);
String description() const;
void setDescription(const String &desc);
ByteVector object() const;
void setObject(const ByteVector &data);
protected:
void parseFields(const ByteVector &data) override;
ByteVector renderFields() const override;
private:
GeneralEncapsulatedObjectFrame(const ByteVector &data, Header *h);
class GeneralEncapsulatedObjectFramePrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<GeneralEncapsulatedObjectFramePrivate> d;
};
} // namespace ID3v2
} // namespace TagLib
#endif
TagLib::ByteVector
A byte vector.
Definition tbytevector.h:46
TagLib::ID3v2::Frame::Header
ID3v2 frame header implementation.
Definition id3v2frame.h:293
TagLib::ID3v2::Frame::Frame
Frame(const Frame &)=delete
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::toStringList
StringList toStringList() const override
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::textEncoding
String::Type textEncoding() const
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::setMimeType
void setMimeType(const String &type)
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::setObject
void setObject(const ByteVector &data)
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::setFileName
void setFileName(const String &name)
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::~GeneralEncapsulatedObjectFrame
~GeneralEncapsulatedObjectFrame() override
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::setTextEncoding
void setTextEncoding(String::Type encoding)
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::GeneralEncapsulatedObjectFrame
GeneralEncapsulatedObjectFrame()
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::GeneralEncapsulatedObjectFrame
GeneralEncapsulatedObjectFrame(const GeneralEncapsulatedObjectFrame &)=delete
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::object
ByteVector object() const
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::description
String description() const
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::FrameFactory
friend class FrameFactory
Definition generalencapsulatedobjectframe.h:52
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::toString
String toString() const override
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::operator=
GeneralEncapsulatedObjectFrame & operator=(const GeneralEncapsulatedObjectFrame &)=delete
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::parseFields
void parseFields(const ByteVector &data) override
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::mimeType
String mimeType() const
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::setDescription
void setDescription(const String &desc)
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::renderFields
ByteVector renderFields() const override
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::fileName
String fileName() const
TagLib::ID3v2::GeneralEncapsulatedObjectFrame::GeneralEncapsulatedObjectFrame
GeneralEncapsulatedObjectFrame(const ByteVector &data)
TagLib::StringList
A list of strings.
Definition tstringlist.h:44
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
TagLib::String::Type
Type
Definition tstring.h:96
id3v2frame.h
TagLib::ID3v2
An ID3v2 implementation.
Definition flacfile.h:39
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