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