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" 84 bool is_connected()
const;
87 void new_connection();
88 void socket_disconnected();
91 void pos_changed_ms(MilliSeconds pos);
92 void track_changed(
const MetaData& md);
93 void volume_changed(
int vol);
94 void playstate_changed(
PlayState playstate);
97 void _sl_active_changed();
98 void _sl_port_changed();
99 void _sl_broadcast_changed();
106 void set_volume(
int vol);
107 void seek_rel(
int pos_percent);
108 void seek_rel_ms(
int pos_ms);
109 void change_track(
int idx);
112 void request_state();
114 int extract_parameter_int(
const QByteArray& arr,
int cmd_len);
116 void write_playstate();
117 void write_broadcast_info();
118 void write_cur_track();
120 void write_cur_pos();
121 void write_playlist();
124 void write_cover(
const MetaData& md);
126 void write(
const QByteArray& arr);
128 void active_changed();
131 #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:73
std::shared_ptr< const Playlist::Base > PlaylistConstPtr
PlaylistConstPtr read only Playlist Pointer.
Definition: PlaylistFwd.h:45