QtGStreamer  0.10.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Static Public Member Functions | Related Functions
QGst::TagList Class Reference

#include <QGst/TagList>

List of all members.

Public Member Functions

 TagList (const GstTagList *taglist)
 TagList (const TagList &other)
TagListoperator= (const TagList &other)
bool isEmpty () const
void insert (const TagList &other, TagMergeMode mode=TagMergeAppend)
QGlib::Value tagValue (const char *tag, int index=0) const
void setTagValue (const char *tag, const QGlib::Value &value, TagMergeMode mode=TagMergeReplaceAll)
int tagValueCount (const char *tag) const
void clear ()
void removeTag (const char *tag)
 operator GstTagList * ()
 operator const GstTagList * () const
QString title (int index=0) const
void setTitle (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int titleCount () const
QString titleSortName () const
void setTitleSortName (const QString &value)
QString artist (int index=0) const
void setArtist (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int artistCount () const
QString artistSortName () const
void setArtistSortName (const QString &value)
QString composer (int index=0) const
void setComposer (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int composerCount () const
QDate date () const
void setDate (const QDate &value)
QString genre (int index=0) const
void setGenre (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int genreCount () const
QString comment (int index=0) const
void setComment (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int commentCount () const
QString extendedComment (int index=0) const
void setExtendedComment (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int extendedCommentCount () const
quint32 trackNumber () const
void setTrackNumber (quint32 value)
quint32 trackCount () const
void setTrackCount (quint32 value)
quint32 albumVolumeNumber () const
void setAlbumVolumeNumber (quint32 value)
quint32 albumVolumeCount () const
void setAlbumVolumeCount (quint32 value)
QString location (int index=0) const
void setLocation (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int locationCount () const
QString homepage (int index=0) const
void setHomepage (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int homepageCount () const
QString description (int index=0) const
void setDescription (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int descriptionCount () const
QString version () const
void setVersion (const QString &value)
QString isrc () const
void setIsrc (const QString &value)
QString organization (int index=0) const
void setOrganization (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int organizationCount () const
QString copyright () const
void setCopyright (const QString &value)
QString copyrightUri () const
void setCopyrightUri (const QString &value)
QString contact (int index=0) const
void setContact (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int contactCount () const
QString license () const
void setLicense (const QString &value)
QString licenseUri () const
void setLicenseUri (const QString &value)
QString performer (int index=0) const
void setPerformer (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int performerCount () const
quint64 duration () const
void setDuration (quint64 value)
QString codec () const
void setCodec (const QString &value)
QString videoCodec () const
void setVideoCodec (const QString &value)
QString audioCodec () const
void setAudioCodec (const QString &value)
QString subtitleCodec () const
void setSubtitleCodec (const QString &value)
QString containerFormat () const
void setContainerFormat (const QString &value)
quint32 bitrate () const
void setBitrate (quint32 value)
quint32 nominalBitrate () const
void setNominalBitrate (quint32 value)
quint32 minimumBitrate () const
void setMinimumBitrate (quint32 value)
quint32 maximumBitrate () const
void setMaximumBitrate (quint32 value)
quint32 serial () const
void setSerial (quint32 value)
QString encoder () const
void setEncoder (const QString &value)
quint32 encoderVersion () const
void setEncoderVersion (quint32 value)
double trackGain () const
void setTrackGain (double value)
double trackPeak () const
void setTrackPeak (double value)
double albumGain () const
void setAlbumGain (double value)
double albumPeak () const
void setAlbumPeak (double value)
double referenceLevel () const
void setReferenceLevel (double value)
QString languageCode () const
void setLanguageCode (const QString &value)
BufferPtr image (int index=0) const
void setImage (const BufferPtr &value, TagMergeMode mode=TagMergeReplaceAll)
int imageCount () const
BufferPtr previewImage () const
void setPreviewImage (const BufferPtr &value)
BufferPtr attachment (int index=0) const
void setAttachment (const BufferPtr &value, TagMergeMode mode=TagMergeReplaceAll)
int attachmentCount () const
double beatsPerMinute () const
void setBeatsPerMinute (double value)
QString keywords (int index=0) const
void setKeywords (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int keywordsCount () const
QString geoLocationName () const
void seGeoLocationName (const QString &value)
double geoLocationLatitude () const
void setGeoLocationLatitude (double value)
double geoLocationLongitude () const
void setGeoLocationLongitude (double value)
double geoLocationElevation () const
void setGeoLocationElevation (double value)
QString geoLocationCountry () const
void setGeoLocationCountry (const QString &value)
QString geoLocationCity () const
void setGeoLocationCity (const QString &value)
QString geoLocationSublocation () const
void setGeoLocationSublocation (const QString &value)
double geoLocationMovementSpeed () const
void setGeoLocationMovementSpeed (double value)
double geoLocationMovementDirection () const
void setGeoLocationMovementDirection (double value)
double geoLocationCaptureDirection () const
void setGeoLocationCaptureDirector (double value)
QString showName (int index=0) const
void setShowName (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int showNameCount () const
QString showSortName () const
void setShowSortName (const QString &value)
quint32 showEpisodeNumber () const
void setShowEpisodeNumber (quint32 value)
quint32 showSeasonNumber () const
void setShowSeasonNumber (quint32 value)
QString lyrics (int index=0) const
void setLyrics (const QString &value, TagMergeMode mode=TagMergeReplaceAll)
int lyricsCount () const
QString composerSortName () const
void setComposerSortName (const QString &value)
QString grouping () const
void setGrouping (const QString &value)
quint32 userRating () const
void setUserRating (quint32 value)
QString deviceManufacturer () const
void setDeviceManufacturer (const QString &value)
QString deviceModel () const
void setDeviceModel (const QString &value)
QString imageOrientation () const
void setImageOrientation (const QString &value)
QString applicationName () const
void setApplicationName (const QString &value)
BufferPtr applicationData () const
void setApplicationData (const BufferPtr &value)
QDateTime dateTime () const
void setDateTime (const QDateTime &value)
double geoLocationHorizontalError () const
void setGeoLocationHorizontalError (double value)

Static Public Member Functions

static TagList merge (const TagList &firstList, const TagList &secondList, TagMergeMode mode=TagMergeAppend)

Related Functions

(Note that these are not member functions.)

QDebug operator<< (QDebug debug, const TagList &taglist)

Detailed Description

Wrapper class for GstTagList.

TagList is a collection of tags and values that is associated with TagMessages and TagEvents. used to describe metadata in media files.

Tags are usually set with the helper functions:

 TagList tl();
 tl.setTitle("12th Symphony");
 tl.setAuthor("Beethoven");
 tl.setTrackNumber(1);

And retrieved as native Qt types in a similar way:

 qDebug() << tl.title();
 int track = tl.trackNumber();

Some tags accept multiple values. By default only the first value is returned, but it is possible to determine the number of values available and retrieve a specific one using its index:

 int authors = tl.authorCount();
 for (int i=0; i<authors; i++) {
      myAuthorList << tl.author(i);
 }

It is also possible to use the optional TagMerge parameters when setting tags that accept multiple values:

 tl.setAuthor("John");
 tl.setAuthor("Mary", QGst::TagMergeAppend); //now tl.authorCount() equals 2
 tl.setAuthor("George", QGst::TagMergeReplaceAll); //now there is only one author, "George"
Note:
This class is implicitly shared.

Definition at line 70 of file taglist.h.


Friends And Related Function Documentation

QDebug operator<< ( QDebug  debug,
const TagList taglist 
) [related]

Definition at line 1074 of file taglist.cpp.


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