BluezQt 5.109.0
|
#include <BluezQt/MediaPlayer>
Public Types | |
enum | Equalizer { EqualizerOn , EqualizerOff } |
Equalizer state. More... | |
enum | Repeat { RepeatOff , RepeatSingleTrack , RepeatAllTracks , RepeatGroup } |
Repeat state. More... | |
enum | Shuffle { ShuffleOff , ShuffleAllTracks , ShuffleGroup } |
Shuffle state. More... | |
enum | Status { Playing , Stopped , Paused , ForwardSeek , ReverseSeek , Error } |
Player status. More... | |
Properties | |
Equalizer | equalizer |
QString | name |
quint32 | position |
Repeat | repeat |
Shuffle | shuffle |
Status | status |
MediaPlayerTrack | track |
Signals | |
void | equalizerChanged (Equalizer equalizer) |
Indicates that player's equalizer state have changed. | |
void | nameChanged (const QString &name) |
Indicates that player's name have changed. | |
void | positionChanged (quint32 position) |
Indicates that player's playback position have changed. | |
void | repeatChanged (Repeat repeat) |
Indicates that player's repeat state have changed. | |
void | shuffleChanged (Shuffle shuffle) |
Indicates that player's shuffle state have changed. | |
void | statusChanged (Status status) |
Indicates that player's status have changed. | |
void | trackChanged (MediaPlayerTrack track) |
Indicates that player's current track have changed. | |
Public Slots | |
PendingCall * | fastForward () |
Fast forwards playback. | |
PendingCall * | next () |
Switch to next track. | |
PendingCall * | pause () |
Pauses playback. | |
PendingCall * | play () |
Resumes playback. | |
PendingCall * | previous () |
Switch to previous track. | |
PendingCall * | rewind () |
Rewinds playback. | |
PendingCall * | stop () |
Stops playback. | |
Public Member Functions | |
~MediaPlayer () override | |
Destroys a MediaPlayer object. | |
Equalizer | equalizer () const |
Returns the equalizer state of the player. | |
QString | name () const |
Returns the name of the player. | |
quint32 | position () const |
Returns the playback position in milliseconds. | |
Repeat | repeat () const |
Returns the repeat state of the player. | |
PendingCall * | setEqualizer (Equalizer equalizer) |
Sets the equalizer state of the player. | |
PendingCall * | setRepeat (Repeat repeat) |
Sets the repeat state of the player. | |
PendingCall * | setShuffle (Shuffle shuffle) |
Sets the shuffle state of the player. | |
Shuffle | shuffle () const |
Returns the shuffle state of the player. | |
Status | status () const |
Returns the status of the player. | |
MediaPlayerPtr | toSharedPtr () const |
Returns a shared pointer from this. | |
MediaPlayerTrack | track () const |
Returns the current track. | |
Media player.
This class represents a media player interface.
|
override |
Destroys a MediaPlayer object.
Equalizer BluezQt::MediaPlayer::equalizer | ( | ) | const |
Returns the equalizer state of the player.
|
signal |
Indicates that player's equalizer state have changed.
|
slot |
Fast forwards playback.
Possible errors: PendingCall::NotSupported, PendingCall::Failed
QString BluezQt::MediaPlayer::name | ( | ) | const |
Returns the name of the player.
|
signal |
Indicates that player's name have changed.
|
slot |
Switch to next track.
Possible errors: PendingCall::NotSupported, PendingCall::Failed
|
slot |
Pauses playback.
Possible errors: PendingCall::NotSupported, PendingCall::Failed
|
slot |
Resumes playback.
Possible errors: PendingCall::NotSupported, PendingCall::Failed
quint32 BluezQt::MediaPlayer::position | ( | ) | const |
Returns the playback position in milliseconds.
|
signal |
Indicates that player's playback position have changed.
|
slot |
Switch to previous track.
Possible errors: PendingCall::NotSupported, PendingCall::Failed
Repeat BluezQt::MediaPlayer::repeat | ( | ) | const |
Returns the repeat state of the player.
|
signal |
Indicates that player's repeat state have changed.
|
slot |
Rewinds playback.
Possible errors: PendingCall::NotSupported, PendingCall::Failed
PendingCall * BluezQt::MediaPlayer::setEqualizer | ( | Equalizer | equalizer | ) |
Sets the equalizer state of the player.
equalizer | equalizer state |
PendingCall * BluezQt::MediaPlayer::setRepeat | ( | Repeat | repeat | ) |
Sets the repeat state of the player.
repeat | repeat state |
PendingCall * BluezQt::MediaPlayer::setShuffle | ( | Shuffle | shuffle | ) |
Sets the shuffle state of the player.
shuffle | shuffle state |
Shuffle BluezQt::MediaPlayer::shuffle | ( | ) | const |
Returns the shuffle state of the player.
|
signal |
Indicates that player's shuffle state have changed.
Status BluezQt::MediaPlayer::status | ( | ) | const |
Returns the status of the player.
|
signal |
Indicates that player's status have changed.
|
slot |
Stops playback.
Possible errors: PendingCall::NotSupported, PendingCall::Failed
MediaPlayerPtr BluezQt::MediaPlayer::toSharedPtr | ( | ) | const |
Returns a shared pointer from this.
MediaPlayerTrack BluezQt::MediaPlayer::track | ( | ) | const |
Returns the current track.
|
signal |
Indicates that player's current track have changed.