TagLib 1.8.0 (TagLib::ID3v2::OwnershipFrame Class Reference)

TagLib::ID3v2::OwnershipFrame Class Reference

An implementation of ID3v2 "ownership". More...

#include <ownershipframe.h>

Inheritance diagram for TagLib::ID3v2::OwnershipFrame:
Collaboration diagram for TagLib::ID3v2::OwnershipFrame:

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

Construct an empty ownership frame.

Construct a ownership based on the data in data.

Destroys this OwnershipFrame instance.


Member Function Documentation

Returns the date purchased.

See also:
setDatePurchased()
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.

See also:
setPricePaid()
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.

Returns the seller.

See also:
setSeller()

Set the date purchased.

See also:
datePurchased()

Set the price paid.

See also:
pricePaid()

Set the seller.

See also:
seller()

Sets the text encoding to be used when rendering this frame to encoding.

See also:
textEncoding()
render()

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.

See also:
setTextEncoding()
render()
virtual String TagLib::ID3v2::OwnershipFrame::toString ( ) const [virtual]

Returns the text of this popularimeter.

See also:
text()

Implements TagLib::ID3v2::Frame.


Friends And Related Function Documentation

friend class FrameFactory [friend]

Reimplemented from TagLib::ID3v2::Frame.


The documentation for this class was generated from the following file: