21 #ifndef REMOTECONTROL_H 22 #define REMOTECONTROL_H 24 #include "Components/PlayManager/PlayState.h" 25 #include "Utils/Settings/SayonaraClass.h" 26 #include "Utils/Playlist/PlaylistFwd.h" 30 #include "Utils/Pimpl.h" 87 bool is_connected()
const;
90 void new_connection();
91 void socket_disconnected();
94 void pos_changed_ms(
const uint64_t pos);
95 void track_changed(
const MetaData& md);
96 void volume_changed(
int vol);
97 void playstate_changed(
PlayState playstate);
100 void _sl_active_changed();
101 void _sl_port_changed();
102 void _sl_broadcast_changed();
109 void set_volume(
int vol);
110 void seek_rel(
int pos_percent);
111 void seek_rel_ms(
int pos_ms);
112 void change_track(
int idx);
115 void request_state();
117 int extract_parameter_int(
const QByteArray& arr,
int cmd_len);
119 void write_playstate();
120 void write_broadcast_info();
121 void write_cur_track();
123 void write_cur_pos();
124 void write_playlist();
127 void write_cover(
const MetaData& md);
129 void write(
const QByteArray& arr);
132 #endif // REMOTECONTROL_H The SayonaraClass class provides access to Settings and notifications.
Definition: SayonaraClass.h:29
PlayState
The PlayState enum.
Definition: PlayState.h:28
Remote control allows to control Sayonara from an external application via network. Various commands are implemented. Sayonara also delivers information about state changes,The current implemented commands are: .
Definition: RemoteControl.h:76
std::shared_ptr< const Playlist::Base > PlaylistConstPtr
PlaylistConstPtr read only Playlist Pointer.
Definition: PlaylistFwd.h:45