![]() |
|
#include <asftag.h>
Public Member Functions | |
Tag () | |
virtual | ~Tag () |
virtual String | title () const |
virtual String | artist () const |
virtual String | album () const |
virtual String | comment () const |
virtual String | genre () const |
virtual String | rating () const |
virtual String | copyright () const |
virtual uint | year () const |
virtual uint | track () const |
virtual void | setTitle (const String &s) |
virtual void | setArtist (const String &s) |
virtual void | setAlbum (const String &s) |
virtual void | setComment (const String &s) |
virtual void | setRating (const String &s) |
virtual void | setCopyright (const String &s) |
virtual void | setGenre (const String &s) |
virtual void | setYear (uint i) |
virtual void | setTrack (uint i) |
virtual bool | isEmpty () const |
AttributeListMap & | attributeListMap () |
void | removeItem (const String &name) |
void | setAttribute (const String &name, const Attribute &attribute) |
void | addAttribute (const String &name, const Attribute &attribute) |
Friends | |
class | File |
TagLib::ASF::Tag::Tag | ( | ) |
Construct a Tag. This is protected since tags should only be instantiated through subclasses.
Reimplemented from TagLib::Tag.
virtual TagLib::ASF::Tag::~Tag | ( | ) | [virtual] |
Detroys this Tag instance.
Reimplemented from TagLib::Tag.
Sets the key attribute to the value of attribute. If an attribute with the key is already present, it will be added to the list.
virtual String TagLib::ASF::Tag::album | ( | ) | const [virtual] |
Returns the album name; if no album name is present in the tag String::null will be returned.
Implements TagLib::Tag.
virtual String TagLib::ASF::Tag::artist | ( | ) | const [virtual] |
Returns the artist name.
Implements TagLib::Tag.
AttributeListMap& TagLib::ASF::Tag::attributeListMap | ( | ) |
Returns a reference to the item list map. This is an AttributeListMap of all of the items in the tag.
This is the most powerfull structure for accessing the items of the tag.
virtual String TagLib::ASF::Tag::comment | ( | ) | const [virtual] |
Returns the track comment.
Implements TagLib::Tag.
virtual String TagLib::ASF::Tag::copyright | ( | ) | const [virtual] |
Returns the genre name; if no genre is present in the tag String::null will be returned.
virtual String TagLib::ASF::Tag::genre | ( | ) | const [virtual] |
Returns the genre name; if no genre is present in the tag String::null will be returned.
Implements TagLib::Tag.
virtual bool TagLib::ASF::Tag::isEmpty | ( | ) | const [virtual] |
Returns true if the tag does not contain any data. This should be reimplemented in subclasses that provide more than the basic tagging abilities in this class.
Reimplemented from TagLib::Tag.
virtual String TagLib::ASF::Tag::rating | ( | ) | const [virtual] |
Returns the rating.
void TagLib::ASF::Tag::removeItem | ( | const String & | name | ) |
Removes the key attribute from the tag
virtual void TagLib::ASF::Tag::setAlbum | ( | const String & | s | ) | [virtual] |
Sets the album to s. If s is String::null then this value will be cleared.
Implements TagLib::Tag.
virtual void TagLib::ASF::Tag::setArtist | ( | const String & | s | ) | [virtual] |
Sets the artist to s.
Implements TagLib::Tag.
Sets the key attribute to the value of attribute. If an attribute with the key is already present, it will be replaced.
virtual void TagLib::ASF::Tag::setComment | ( | const String & | s | ) | [virtual] |
Sets the comment to s.
Implements TagLib::Tag.
virtual void TagLib::ASF::Tag::setCopyright | ( | const String & | s | ) | [virtual] |
Sets the copyright to s.
virtual void TagLib::ASF::Tag::setGenre | ( | const String & | s | ) | [virtual] |
Sets the genre to s.
Implements TagLib::Tag.
virtual void TagLib::ASF::Tag::setRating | ( | const String & | s | ) | [virtual] |
Sets the rating to s.
virtual void TagLib::ASF::Tag::setTitle | ( | const String & | s | ) | [virtual] |
Sets the title to s.
Implements TagLib::Tag.
virtual void TagLib::ASF::Tag::setTrack | ( | uint | i | ) | [virtual] |
Sets the track to i. If s is 0 then this value will be cleared.
Implements TagLib::Tag.
virtual void TagLib::ASF::Tag::setYear | ( | uint | i | ) | [virtual] |
Sets the year to i. If s is 0 then this value will be cleared.
Implements TagLib::Tag.
virtual String TagLib::ASF::Tag::title | ( | ) | const [virtual] |
Returns the track name.
Implements TagLib::Tag.
virtual uint TagLib::ASF::Tag::track | ( | ) | const [virtual] |
Returns the track number; if there is no track number set, this will return 0.
Implements TagLib::Tag.
virtual uint TagLib::ASF::Tag::year | ( | ) | const [virtual] |
Returns the year; if there is no year set, this will return 0.
Implements TagLib::Tag.
friend class File [friend] |