BluezQt::MediaPlayerTrack Class

class BluezQt::MediaPlayerTrack

Media player track. More...

Header: #include <BluezQt/MediaPlayerTrack>
CMake: find_package(KF6 REQUIRED COMPONENTS BluezQt)
target_link_libraries(mytarget PRIVATE KF6::BluezQt)

Public Functions

MediaPlayerTrack()
MediaPlayerTrack(const BluezQt::MediaPlayerTrack &other)
QString album() const
QString artist() const
quint32 duration() const
QString genre() const
bool isValid() const
quint32 numberOfTracks() const
QString title() const
quint32 trackNumber() const
BluezQt::MediaPlayerTrack &operator=(const BluezQt::MediaPlayerTrack &other)

Detailed Description

This class represents a track in media player.

Member Function Documentation

[explicit] MediaPlayerTrack::MediaPlayerTrack()

Creates a new invalid MediaPlayerTrack object.

MediaPlayerTrack::MediaPlayerTrack(const BluezQt::MediaPlayerTrack &other)

Constructs a new MediaPlayerTrack object from other.

QString MediaPlayerTrack::album() const

Returns the track album.

QString MediaPlayerTrack::artist() const

Returns the track artist.

quint32 MediaPlayerTrack::duration() const

Returns the track duration.

QString MediaPlayerTrack::genre() const

Returns the track genre.

bool MediaPlayerTrack::isValid() const

Returns whether the track is valid.

quint32 MediaPlayerTrack::numberOfTracks() const

Returns the total number of tracks.

QString MediaPlayerTrack::title() const

Returns the track title.

quint32 MediaPlayerTrack::trackNumber() const

Returns the track number.

BluezQt::MediaPlayerTrack &MediaPlayerTrack::operator=(const BluezQt::MediaPlayerTrack &other)

Copies the MediaPlayerTrack object from other.