QIviAudioTrackItem Class

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

Header: #include <QIviAudioTrackItem>
qmake: QT += ivimedia
Instantiated By: AudioTrackItem
Inherits: QIviPlayableItem

Properties

Public Functions

QIviAudioTrackItem()
QIviAudioTrackItem(const QIviAudioTrackItem &)
~QIviAudioTrackItem()
virtual QString album()
virtual QString artist()
virtual QUrl coverArtUrl()
virtual qint64 duration()
virtual QString genre()
virtual int rating()
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()
virtual int trackNumber()
virtual int year()
bool operator!=(const QIviAudioTrackItem &other)
QIviAudioTrackItem &operator=(const QIviAudioTrackItem &)
bool operator==(const QIviAudioTrackItem &other)

Reimplemented Public Functions

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

Detailed Description

The QIviAudioTrackItem represents a playable audio track.

Property Documentation

album : QString

Holds the album name of the audio track.

Access functions:

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

artist : QString

Holds the artist of the audio track.

Access functions:

virtual QString artist()
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()
virtual void setCoverArtUrl(const QUrl &url)

duration : qint64

Holds the duration of the audio track.

Access functions:

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

genre : QString

Holds the genre of the audio track.

Access functions:

virtual QString genre()
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()
virtual void setRating(int rating)

title : QString

Holds the title of the audio track.

Access functions:

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

trackNumber : int

Holds the number this track has in the album.

Access functions:

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

year : int

Holds the release year of the audio track.

Access functions:

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

Member Function Documentation

QIviAudioTrackItem::QIviAudioTrackItem()

Default constructs an instance of QIviAudioTrackItem.

QIviAudioTrackItem::QIviAudioTrackItem(const QIviAudioTrackItem &)

Copy constructor.

QIviAudioTrackItem::~QIviAudioTrackItem()

Destroys the instance of QIviAudioTrackItem.

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

Reimplemented from QIviSearchAndBrowseModelItem::name().

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

Reimplemented from QIviSearchAndBrowseModelItem::type().

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

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

See also operator==().

QIviAudioTrackItem &QIviAudioTrackItem::operator=(const QIviAudioTrackItem &)

Copy-assignment operator.

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

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

See also operator!=().

© 2018 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.