An MP4 tag implementation. More...
#include <mp4tag.h>
Protected Member Functions | |
void | setTextItem (const String &key, const String &value) |
![]() | |
Tag () | |
Additional Inherited Members | |
![]() | |
static void | duplicate (const Tag *source, Tag *target, bool overwrite=true) |
static String | joinTagValues (const StringList &values) |
An MP4 tag implementation.
TagLib::MP4::Tag::Tag | ( | ) |
TagLib::MP4::Tag::Tag | ( | TagLib::File * | file, |
Atoms * | atoms, | ||
const ItemFactory * | factory = nullptr |
||
) |
|
overridevirtual |
Destroys this Tag instance.
Reimplemented from TagLib::Tag.
|
overridevirtual |
Returns the album name; if no album name is present in the tag an empty string will be returned.
Implements TagLib::Tag.
|
overridevirtual |
Returns the artist name; if no artist name is present in the tag an empty string will be returned.
Implements TagLib::Tag.
|
overridevirtual |
Returns the track comment; if no comment is present in the tag an empty string will be returned.
Implements TagLib::Tag.
|
overridevirtual |
Get the complex properties for a given key. In order to be flexible for different metadata formats, the properties are represented as variant maps. Despite this dynamic nature, some degree of standardization should be achieved between formats:
Reimplemented from TagLib::Tag.
|
overridevirtual |
Get the keys of complex properties, i.e. properties which cannot be represented simply by a string. Because such properties might be expensive to fetch, there are separate operations to get the available keys - which is expected to be cheap - and getting and setting the property values. The default implementation returns only an empty list. Reimplementations should provide "PICTURE" if embedded cover art is present, and optionally support other properties.
Reimplemented from TagLib::Tag.
true
if the tag contains an entry for key.
|
overridevirtual |
Returns the genre name; if no genre is present in the tag an empty string will be returned.
Implements TagLib::Tag.
|
overridevirtual |
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.
Returns a string-keyed map of the MP4::Items for this tag.
|
overridevirtual |
Exports the tags of the file as dictionary mapping (human readable) tag names (Strings) to StringLists of tag values. The default implementation in this class considers only the usual built-in tags (artist, album, ...) and only one value per key.
Reimplemented from TagLib::Tag.
Removes the entry with key from the tag, or does nothing if it does not exist.
|
overridevirtual |
Removes unsupported properties, or a subset of them, from the tag. The parameter properties must contain only entries from properties().unsupportedData().
Reimplemented from TagLib::Tag.
bool TagLib::MP4::Tag::save | ( | ) |
Sets the album to s. If s is an empty string then this value will be cleared.
Implements TagLib::Tag.
Sets the artist to s. If s is an empty string then this value will be cleared.
Implements TagLib::Tag.
Sets the comment to s. If s is an empty string then this value will be cleared.
Implements TagLib::Tag.
|
overridevirtual |
Set all complex properties for a given key using variant maps as value with the same format as returned by complexProperties(). An empty list as value removes all complex properties for key.
Reimplemented from TagLib::Tag.
Sets the genre to s. If s is an empty string 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.
|
overridevirtual |
Sets the tags of this File to those specified in origProps. This default implementation sets only the tags for which setter methods exist in this class (artist, album, ...), and only one value per key; the rest will be contained in the returned PropertyMap.
Reimplemented from TagLib::Tag.
Sets the value of key to value, overwriting any previous value. If value is empty, the item is removed.
Sets the title to s. If s is an empty string then this value will be cleared.
Implements TagLib::Tag.
Sets the track to i. If s is 0 then this value will be cleared.
Implements TagLib::Tag.
Sets the year to i. If s is 0 then this value will be cleared.
Implements TagLib::Tag.
bool TagLib::MP4::Tag::strip | ( | ) |
Saves the associated file with the tag stripped.
|
overridevirtual |
Returns the track name; if no track name is present in the tag an empty string will be returned.
Implements TagLib::Tag.
Returns the track number; if there is no track number set, this will return 0.
Implements TagLib::Tag.
Returns the year; if there is no year set, this will return 0.
Implements TagLib::Tag.