QIfAudioTrackItem Class

The QIfAudioTrackItem represents a playable audio track. More...

Header: #include <QIfAudioTrackItem>
qmake: QT += ifmedia
Instantiated By: AudioTrackItem
Inherits: QIfPlayableItem

Properties

Public Functions

virtual QString album() const
virtual QString artist() const
virtual QUrl coverArtUrl() const
virtual qint64 duration() const
virtual QString genre() const
virtual int rating() const
virtual void setAlbum(const QString &album)
virtual void setArtist(const QString &artist)
virtual void setCoverArtUrl(const QUrl &url)
virtual void setDuration(qint64 duration)
virtual void setGenre(const QString &genre)
virtual void setRating(int rating)
virtual void setTitle(const QString &title)
virtual void setTrackNumber(int trackNumber)
virtual void setYear(int year)
virtual QString title() const
virtual int trackNumber() const
virtual int year() const
bool operator!=(const QIfAudioTrackItem &other) const
bool operator==(const QIfAudioTrackItem &other) const

Reimplemented Public Functions

virtual QString name() const override
virtual QString type() const override

Detailed Description

Property Documentation

album : QString

Holds the album name of the audio track.

Access functions:

virtual QString album() const
virtual void setAlbum(const QString &album)

artist : QString

Holds the artist of the audio track.

Access functions:

virtual QString artist() const
virtual void setArtist(const QString &artist)

coverArtUrl : QUrl

Holds the cover art of the audio track.

This can be a url to a local image file or a link to a qml image provider

Access functions:

virtual QUrl coverArtUrl() const
virtual void setCoverArtUrl(const QUrl &url)

duration : qint64

Holds the duration of the audio track.

Access functions:

virtual qint64 duration() const
virtual void setDuration(qint64 duration)

genre : QString

Holds the genre of the audio track.

Access functions:

virtual QString genre() const
virtual void setGenre(const QString &genre)

rating : int

Holds the rating of the audio track.

This is usually a value between 0 and 5.

Access functions:

virtual int rating() const
virtual void setRating(int rating)

title : QString

Holds the title of the audio track.

Access functions:

virtual QString title() const
virtual void setTitle(const QString &title)

trackNumber : int

Holds the number this track has in the album.

Access functions:

virtual int trackNumber() const
virtual void setTrackNumber(int trackNumber)

year : int

Holds the release year of the audio track.

Access functions:

virtual int year() const
virtual void setYear(int year)

Member Function Documentation

[override virtual] QString QIfAudioTrackItem::name() const

Reimplements an access function for property: QIfStandardItem::name.

[override virtual] QString QIfAudioTrackItem::type() const

Reimplements: QIfPlayableItem::type() const.

bool QIfAudioTrackItem::operator!=(const QIfAudioTrackItem &other) const

Returns true if this item is not equal to other; otherwise returns false.

See also operator==().

bool QIfAudioTrackItem::operator==(const QIfAudioTrackItem &other) const

Returns true if this item is equal to other; otherwise returns false.

See also operator!=().

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.