 |
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 sig_track_metadata_changed();
119 void sig_bitrate_changed();
153 void sig_error(
const QString& message);
243 void set_track_finished();
287 void change_bitrate(Bitrate br);
293 void error(
const QString& message);
321 Bitrate bitrate()
const;
349 void track_metadata_changed();
350 void tracks_deleted();
void sig_next()
next track was triggered
MilliSeconds current_position_ms() const
get current position in milliseconds
PlayState
The PlayState enum.
Definition: PlayState.h:28
const MetaData & current_track() const
get current track
MilliSeconds duration_ms() const
get duration of track
void volume_up()
increase volume by 5
void set_track_ready()
notify, that track is ready for playback
void sig_volume_changed(int vol)
emitted when volume has changed
void sig_track_idx_changed(int idx)
track has changed
void sig_www_track_finished(const MetaData &old_md)
emitted when a streamed track has finished
void sig_track_changed(const MetaData &md)
track has changed
void sig_mute_changed(bool b)
emitted when mute state has changed
void record(bool b)
request recording (see also sig_record(bool b))
void sig_buffer(int b)
emitted when currently in buffering state
void set_position_ms(MilliSeconds ms)
set current position of track This method does not seek. Just tells the playmanager where the current...
void error(const QString &message)
Some playback error occured.
Global handler for current playback state (Singleton)
Definition: PlayManager.h:33
void sig_record(bool b)
recording is requested
void change_duration(MilliSeconds ms)
Change the duration. This is usually called when the Engine sends a duration changed signal....
void set_volume(int vol)
set volume
void toggle_mute()
If already muted, then unmute. If unmuted, then mute it.
void next()
change to next track
void play()
Start playing if there's a track.
void previous()
change to previous track
void seek_rel(double percent)
seek relative
void sig_duration_changed()
duration of track has changed
void sig_position_changed_ms(MilliSeconds ms)
position in track has changed
void shutdown()
Shutdown the computer.
void play_pause()
toggle play/pause
void buffering(int progress)
notifiy, that track is in buffering state currently
void sig_seeked_abs_ms(MilliSeconds ms)
absolute seeking was triggered
void sig_seeked_rel_ms(MilliSeconds ms)
relative seeking was triggered
void volume_down()
decrease volume by 5
bool is_muted() const
query mute status
void set_muted(bool b)
mute/unmute
void pause()
pause track, if currently playing
void sig_previous()
previous track was triggered
void change_track_metadata(const MetaData &md)
change_track
void sig_playlist_finished()
playlist has finished
PlayState playstate() const
get current play state
int volume() const
get current volume
MilliSeconds initial_position_ms() const
get position in milliseconds where track will start
void sig_seeked_rel(double percent)
relative seeking was triggered
void sig_wake_up()
This signal is sent when the playstate changed from stopped to play.
void change_track(const MetaData &md, int track_idx)
change current track
void seek_abs_ms(MilliSeconds ms)
seek absolute
void wake_up()
Emit wake up signal after stopping state.
void seek_rel_ms(MilliSeconds ms)
seek_rel_ms
void sig_playstate_changed(PlayState)
emitted, when PlayState was changed
void sig_stopped()
stop was triggered