![]() |
Miam-Player
0.8.0
A nice music player
|
#include <asfattribute.h>
Public Types | |
enum | AttributeTypes { UnicodeType = 0, BytesType = 1, BoolType = 2, DWordType = 3, QWordType = 4, WordType = 5, GuidType = 6 } |
Enum of types an Attribute can have. More... | |
Public Member Functions | |
Attribute () | |
Constructs an empty attribute. More... | |
Attribute (const String &value) | |
Constructs an attribute with key and a UnicodeType value. More... | |
Attribute (const ByteVector &value) | |
Constructs an attribute with key and a BytesType value. More... | |
Attribute (const Picture &value) | |
Constructs an attribute with key and a Picture value. More... | |
Attribute (unsigned int value) | |
Constructs an attribute with key and a DWordType value. More... | |
Attribute (unsigned long long value) | |
Constructs an attribute with key and a QWordType value. More... | |
Attribute (unsigned short value) | |
Constructs an attribute with key and a WordType value. More... | |
Attribute (bool value) | |
Constructs an attribute with key and a BoolType value. More... | |
Attribute (const Attribute &item) | |
Construct an attribute as a copy of other. More... | |
ASF::Attribute & | operator= (const Attribute &other) |
Copies the contents of other into this item. More... | |
void | swap (Attribute &other) |
Exchanges the content of the Attribute by the content of other. More... | |
virtual | ~Attribute () |
Destroys the attribute. More... | |
AttributeTypes | type () const |
Returns type of the value. More... | |
unsigned short | toBool () const |
Returns the BoolType value. More... | |
unsigned short | toUShort () const |
Returns the WordType value. More... | |
unsigned int | toUInt () const |
Returns the DWordType value. More... | |
unsigned long long | toULongLong () const |
Returns the QWordType value. More... | |
String | toString () const |
Returns the UnicodeType value. More... | |
ByteVector | toByteVector () const |
Returns the BytesType value. More... | |
Picture | toPicture () const |
Returns the Picture value. More... | |
int | language () const |
Returns the language number, or 0 is no stream number was set. More... | |
void | setLanguage (int value) |
Sets the language number. More... | |
int | stream () const |
Returns the stream number, or 0 is no stream number was set. More... | |
void | setStream (int value) |
Sets the stream number. More... | |
String | parse (ASF::File &file, int kind=0) |
int | dataSize () const |
Returns the size of the stored data. More... | |
Friends | |
class | File |
Enum of types an Attribute can have.
Enumerator | |
---|---|
UnicodeType | |
BytesType | |
BoolType | |
DWordType | |
QWordType | |
WordType | |
GuidType |
TagLib::ASF::Attribute::Attribute | ( | ) |
Constructs an empty attribute.
TagLib::ASF::Attribute::Attribute | ( | const String & | value | ) |
Constructs an attribute with key and a UnicodeType value.
TagLib::ASF::Attribute::Attribute | ( | const ByteVector & | value | ) |
Constructs an attribute with key and a BytesType value.
TagLib::ASF::Attribute::Attribute | ( | const Picture & | value | ) |
Constructs an attribute with key and a Picture value.
This attribute is compatible with the ID3 frame, APIC. The ID3 specification for the APIC frame stipulates that, while there may be any number of APIC frames associated with a file, only one may be of type 1 and only one may be of type 2.
The specification also states that the description of the picture can be no longer than 64 characters, but can be empty. WM/Picture attributes added with TagLib::ASF are not automatically validated to conform to ID3 specifications. You must add code in your application to perform validations if you want to maintain complete compatibility with ID3.
TagLib::ASF::Attribute::Attribute | ( | unsigned int | value | ) |
Constructs an attribute with key and a DWordType value.
TagLib::ASF::Attribute::Attribute | ( | unsigned long long | value | ) |
Constructs an attribute with key and a QWordType value.
TagLib::ASF::Attribute::Attribute | ( | unsigned short | value | ) |
Constructs an attribute with key and a WordType value.
TagLib::ASF::Attribute::Attribute | ( | bool | value | ) |
Constructs an attribute with key and a BoolType value.
TagLib::ASF::Attribute::Attribute | ( | const Attribute & | item | ) |
Construct an attribute as a copy of other.
|
virtual |
Destroys the attribute.
int TagLib::ASF::Attribute::dataSize | ( | ) | const |
Returns the size of the stored data.
int TagLib::ASF::Attribute::language | ( | ) | const |
Returns the language number, or 0 is no stream number was set.
ASF::Attribute& TagLib::ASF::Attribute::operator= | ( | const Attribute & | other | ) |
Copies the contents of other into this item.
void TagLib::ASF::Attribute::setLanguage | ( | int | value | ) |
Sets the language number.
void TagLib::ASF::Attribute::setStream | ( | int | value | ) |
Sets the stream number.
int TagLib::ASF::Attribute::stream | ( | ) | const |
Returns the stream number, or 0 is no stream number was set.
void TagLib::ASF::Attribute::swap | ( | Attribute & | other | ) |
Exchanges the content of the Attribute by the content of other.
unsigned short TagLib::ASF::Attribute::toBool | ( | ) | const |
Returns the BoolType value.
ByteVector TagLib::ASF::Attribute::toByteVector | ( | ) | const |
Returns the BytesType value.
String TagLib::ASF::Attribute::toString | ( | ) | const |
Returns the UnicodeType value.
unsigned int TagLib::ASF::Attribute::toUInt | ( | ) | const |
Returns the DWordType value.
unsigned long long TagLib::ASF::Attribute::toULongLong | ( | ) | const |
Returns the QWordType value.
unsigned short TagLib::ASF::Attribute::toUShort | ( | ) | const |
Returns the WordType value.
AttributeTypes TagLib::ASF::Attribute::type | ( | ) | const |
Returns type of the value.
|
friend |