21 #ifndef PLAY_MANAGER_H 22 #define PLAY_MANAGER_H 25 #include "PlayState.h" 26 #include "Utils/Singleton.h" 27 #include "Utils/Pimpl.h" 105 void sigCurrentMetadataChanged();
119 void sigBitrateChanged();
153 void sigError(
const QString& message);
243 void setTrackFinished();
287 void changeBitrate(Bitrate br);
293 void error(
const QString& message);
308 MilliSeconds currentTrackPlaytimeMs()
const;
323 Bitrate bitrate()
const;
351 void trackMetadataChanged();
352 void tracksDeleted();
void sigPositionChangedMs(MilliSeconds ms)
position in track has changed
void sigStreamFinished(const MetaData &old_md)
emitted when a streamed track has finished
void sigBuffering(int b)
emitted when currently in buffering state
void sigDurationChangedMs()
duration of track has changed
void shutdown()
Shutdown the computer.
bool isMuted() const
query mute status
void play()
Start playing if there's a track.
void sigSeekedRelative(double percent)
relative seeking was triggered
void sigPlaylistFinished()
playlist has finished
void sigNext()
next track was triggered
PlayState
The PlayState enum.
Definition: PlayState.h:28
void volumeDown()
decrease volume by 5
void seekRelativeMs(MilliSeconds ms)
seekRelativeMs
void sigRecording(bool b)
recording is requested
MilliSeconds initialPositionMs() const
get position in milliseconds where track will start
void volumeUp()
increase volume by 5
void changeDuration(MilliSeconds ms)
Change the duration. This is usually called when the Engine sends a duration changed signal....
void seekAbsoluteMs(MilliSeconds ms)
seek absolute
Global handler for current playback state (Singleton)
Definition: PlayManager.h:33
void record(bool b)
request recording (see also sig_record(bool b))
void sigSeekedAbsoluteMs(MilliSeconds ms)
absolute seeking was triggered
void toggleMute()
If already muted, then unmute. If unmuted, then mute it.
PlayState playstate() const
get current play state
void sigStopped()
stop was triggered
void sigWakeup()
This signal is sent when the playstate changed from stopped to play.
void error(const QString &message)
Some playback error occured.
MilliSeconds durationMs() const
get duration of track
void sigPrevious()
previous track was triggered
void wakeUp()
Emit wake up signal after stopping state.
void buffering(int progress)
notifiy, that track is in buffering state currently
void playPause()
toggle play/pause
void next()
change to next track
void changeCurrentTrack(const MetaData &md, int trackIdx)
change current track
void sigSeekedRelativeMs(MilliSeconds ms)
relative seeking was triggered
void setTrackReady()
notify, that track is ready for playback
MilliSeconds currentPositionMs() const
get current position in milliseconds
void sigPlaystateChanged(PlayState)
emitted, when PlayState was changed
void setVolume(int vol)
set volume
void sigMuteChanged(bool b)
emitted when mute state has changed
const MetaData & currentTrack() const
get current track
void sigVolumeChanged(int vol)
emitted when volume has changed
void changeCurrentMetadata(const MetaData &md)
change_track
void setCurrentPositionMs(MilliSeconds ms)
set current position of track This method does not seek. Just tells the playmanager where the current...
void setMute(bool b)
mute/unmute
void pause()
pause track, if currently playing
void sigCurrentTrackChanged(const MetaData &md)
track has changed
void previous()
change to previous track
void sigTrackIndexChanged(int idx)
track has changed
void seekRelative(double percent)
seek relative
int volume() const
get current volume