![]() |
|
An implementation of ID3v2 "ownership". More...
#include <ownershipframe.h>
Public Member Functions | |
OwnershipFrame (String::Type encoding=String::Latin1) | |
OwnershipFrame (const ByteVector &data) | |
virtual | ~OwnershipFrame () |
virtual String | toString () const |
String | datePurchased () const |
void | setDatePurchased (const String &datePurchased) |
String | pricePaid () const |
void | setPricePaid (const String &pricePaid) |
String | seller () const |
void | setSeller (const String &seller) |
String::Type | textEncoding () const |
void | setTextEncoding (String::Type encoding) |
Protected Member Functions | |
virtual void | parseFields (const ByteVector &data) |
virtual ByteVector | renderFields () const |
Friends | |
class | FrameFactory |
An implementation of ID3v2 "ownership".
This implements the ID3v2 ownership (OWNE frame). It consists of a price paid, a date purchased (YYYYMMDD) and the name of the seller.
TagLib::ID3v2::OwnershipFrame::OwnershipFrame | ( | String::Type | encoding = String::Latin1 | ) | [explicit] |
Construct an empty ownership frame.
TagLib::ID3v2::OwnershipFrame::OwnershipFrame | ( | const ByteVector & | data | ) | [explicit] |
Construct a ownership based on the data in data.
virtual TagLib::ID3v2::OwnershipFrame::~OwnershipFrame | ( | ) | [virtual] |
Destroys this OwnershipFrame instance.
Returns the date purchased.
virtual void TagLib::ID3v2::OwnershipFrame::parseFields | ( | const ByteVector & | data | ) | [protected, virtual] |
Called by parse() to parse the field data. It makes this information available through the public API. This must be overridden by the subclasses.
Implements TagLib::ID3v2::Frame.
Returns the price paid.
virtual ByteVector TagLib::ID3v2::OwnershipFrame::renderFields | ( | ) | const [protected, virtual] |
Render the field data back to a binary format in a ByteVector. This must be overridden by subclasses.
Implements TagLib::ID3v2::Frame.
String TagLib::ID3v2::OwnershipFrame::seller | ( | ) | const |
Returns the seller.
void TagLib::ID3v2::OwnershipFrame::setDatePurchased | ( | const String & | datePurchased | ) |
Set the date purchased.
void TagLib::ID3v2::OwnershipFrame::setPricePaid | ( | const String & | pricePaid | ) |
Set the price paid.
void TagLib::ID3v2::OwnershipFrame::setSeller | ( | const String & | seller | ) |
Set the seller.
void TagLib::ID3v2::OwnershipFrame::setTextEncoding | ( | String::Type | encoding | ) |
Sets the text encoding to be used when rendering this frame to encoding.
Returns the text encoding that will be used in rendering this frame. This defaults to the type that was either specified in the constructor or read from the frame when parsed.
virtual String TagLib::ID3v2::OwnershipFrame::toString | ( | ) | const [virtual] |
friend class FrameFactory [friend] |
Reimplemented from TagLib::ID3v2::Frame.