ownershipframe.h
Go to the documentation of this file.
/***************************************************************************
copyright : (C) 2012 by Rupert Daniel
email : rupert@cancelmonday.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_OWNERSHIPFRAME_H
#define TAGLIB_OWNERSHIPFRAME_H
#include "taglib_export.h"
#include "id3v2frame.h"
namespace TagLib {
namespace ID3v2 {
class TAGLIB_EXPORT OwnershipFrame : public Frame
{
friend class FrameFactory;
public:
explicit OwnershipFrame(String::Type encoding = String::Latin1);
explicit OwnershipFrame(const ByteVector &data);
~OwnershipFrame() override;
OwnershipFrame(const OwnershipFrame &) = delete;
OwnershipFrame &operator=(const OwnershipFrame &) = delete;
String toString() const override;
StringList toStringList() const override;
String datePurchased() const;
void setDatePurchased(const String &s);
String pricePaid() const;
void setPricePaid(const String &s);
String seller() const;
void setSeller(const String &seller);
String::Type textEncoding() const;
void setTextEncoding(String::Type encoding);
protected:
// Reimplementations.
void parseFields(const ByteVector &data) override;
ByteVector renderFields() const override;
private:
OwnershipFrame(const ByteVector &data, Header *h);
class OwnershipFramePrivate;
TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
std::unique_ptr<OwnershipFramePrivate> 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::OwnershipFrame::OwnershipFrame
OwnershipFrame(const OwnershipFrame &)=delete
TagLib::ID3v2::OwnershipFrame::OwnershipFrame
OwnershipFrame(const ByteVector &data)
TagLib::ID3v2::OwnershipFrame::setPricePaid
void setPricePaid(const String &s)
TagLib::ID3v2::OwnershipFrame::toStringList
StringList toStringList() const override
TagLib::ID3v2::OwnershipFrame::seller
String seller() const
TagLib::ID3v2::OwnershipFrame::setSeller
void setSeller(const String &seller)
TagLib::ID3v2::OwnershipFrame::datePurchased
String datePurchased() const
TagLib::ID3v2::OwnershipFrame::setTextEncoding
void setTextEncoding(String::Type encoding)
TagLib::ID3v2::OwnershipFrame::operator=
OwnershipFrame & operator=(const OwnershipFrame &)=delete
TagLib::ID3v2::OwnershipFrame::OwnershipFrame
OwnershipFrame(String::Type encoding=String::Latin1)
TagLib::ID3v2::OwnershipFrame::textEncoding
String::Type textEncoding() const
TagLib::ID3v2::OwnershipFrame::FrameFactory
friend class FrameFactory
Definition ownershipframe.h:45
TagLib::ID3v2::OwnershipFrame::renderFields
ByteVector renderFields() const override
TagLib::ID3v2::OwnershipFrame::setDatePurchased
void setDatePurchased(const String &s)
TagLib::ID3v2::OwnershipFrame::parseFields
void parseFields(const ByteVector &data) override
TagLib::ID3v2::OwnershipFrame::pricePaid
String pricePaid() const
TagLib::ID3v2::OwnershipFrame::toString
String toString() const override
TagLib::ID3v2::OwnershipFrame::~OwnershipFrame
~OwnershipFrame() override
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
TagLib::String::Latin1
@ Latin1
Definition tstring.h:100
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