![]() |
Miam-Player
0.8.0
A nice music player
|
#include <mp4tag.h>
Public Member Functions | |
| Tag () | |
| Tag (TagLib::File *file, Atoms *atoms) | |
| virtual | ~Tag () |
| Destroys this Tag instance. More... | |
| bool | save () |
| virtual String | title () const |
| Returns the track name; if no track name is present in the tag String::null will be returned. More... | |
| virtual String | artist () const |
| Returns the artist name; if no artist name is present in the tag String::null will be returned. More... | |
| virtual String | album () const |
| Returns the album name; if no album name is present in the tag String::null will be returned. More... | |
| virtual String | comment () const |
| Returns the track comment; if no comment is present in the tag String::null will be returned. More... | |
| virtual String | genre () const |
| Returns the genre name; if no genre is present in the tag String::null will be returned. More... | |
| virtual unsigned int | year () const |
| Returns the year; if there is no year set, this will return 0. More... | |
| virtual unsigned int | track () const |
| Returns the track number; if there is no track number set, this will return 0. More... | |
| virtual void | setTitle (const String &value) |
| Sets the title to s. More... | |
| virtual void | setArtist (const String &value) |
| Sets the artist to s. More... | |
| virtual void | setAlbum (const String &value) |
| Sets the album to s. More... | |
| virtual void | setComment (const String &value) |
| Sets the comment to s. More... | |
| virtual void | setGenre (const String &value) |
| Sets the genre to s. More... | |
| virtual void | setYear (unsigned int value) |
| Sets the year to i. More... | |
| virtual void | setTrack (unsigned int value) |
| Sets the track to i. More... | |
| virtual bool | isEmpty () const |
| Returns true if the tag does not contain any data. More... | |
| ItemMap & | itemListMap () |
| const ItemMap & | itemMap () const |
| Returns a string-keyed map of the MP4::Items for this tag. More... | |
| Item | item (const String &key) const |
| void | setItem (const String &key, const Item &value) |
| Sets the value of key to value, overwriting any previous value. More... | |
| void | removeItem (const String &key) |
| Removes the entry with key from the tag, or does nothing if it does not exist. More... | |
| bool | contains (const String &key) const |
| PropertyMap | properties () const |
| void | removeUnsupportedProperties (const StringList &properties) |
| PropertyMap | setProperties (const PropertyMap &properties) |
Public Member Functions inherited from TagLib::Tag | |
| PropertyMap | properties () const |
| Exports the tags of the file as dictionary mapping (human readable) tag names (Strings) to StringLists of tag values. More... | |
| void | removeUnsupportedProperties (const StringList &properties) |
| Removes unsupported properties, or a subset of them, from the tag. More... | |
| PropertyMap | setProperties (const PropertyMap &properties) |
| Sets the tags of this File to those specified in properties. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from TagLib::Tag | |
| static void | duplicate (const Tag *source, Tag *target, bool overwrite=true) |
| Copies the generic data from one tag to another. More... | |
Protected Member Functions inherited from TagLib::Tag | |
| Tag () | |
| Construct a Tag. More... | |
| TagLib::MP4::Tag::Tag | ( | ) |
| TagLib::MP4::Tag::Tag | ( | TagLib::File * | file, |
| Atoms * | atoms | ||
| ) |
|
virtual |
Destroys this Tag instance.
Reimplemented from TagLib::Tag.
|
virtual |
Returns the album name; if no album name is present in the tag String::null will be returned.
Implements TagLib::Tag.
|
virtual |
Returns the artist name; if no artist name is present in the tag String::null will be returned.
Implements TagLib::Tag.
|
virtual |
Returns the track comment; if no comment is present in the tag String::null will be returned.
Implements TagLib::Tag.
| bool TagLib::MP4::Tag::contains | ( | const String & | key | ) | const |
|
virtual |
Returns the genre name; if no genre is present in the tag String::null will be returned.
Implements TagLib::Tag.
|
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.
| ItemMap& TagLib::MP4::Tag::itemListMap | ( | ) |
| const ItemMap& TagLib::MP4::Tag::itemMap | ( | ) | const |
Returns a string-keyed map of the MP4::Items for this tag.
| PropertyMap TagLib::MP4::Tag::properties | ( | ) | const |
| void TagLib::MP4::Tag::removeItem | ( | const String & | key | ) |
Removes the entry with key from the tag, or does nothing if it does not exist.
| void TagLib::MP4::Tag::removeUnsupportedProperties | ( | const StringList & | properties | ) |
| bool TagLib::MP4::Tag::save | ( | ) |
|
virtual |
|
virtual |
|
virtual |
Sets the comment to s.
If s is String::null then this value will be cleared.
Implements TagLib::Tag.
|
virtual |
Sets the genre to s.
If s is String::null then this value will be cleared. For tag formats that use a fixed set of genres, the appropriate value will be selected based on a string comparison. A list of available genres for those formats should be available in that type's implementation.
Implements TagLib::Tag.
Sets the value of key to value, overwriting any previous value.
| PropertyMap TagLib::MP4::Tag::setProperties | ( | const PropertyMap & | properties | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Returns the track name; if no track name is present in the tag String::null will be returned.
Implements TagLib::Tag.
|
virtual |
Returns the track number; if there is no track number set, this will return 0.
Implements TagLib::Tag.
|
virtual |
Returns the year; if there is no year set, this will return 0.
Implements TagLib::Tag.