21 #ifndef STREAM_SERVER_H 22 #define STREAM_SERVER_H 24 #include "StreamWriter.h" 26 #include "Components/PlayManager/PlayManager.h" 27 #include "Helper/Settings/SayonaraClass.h" 49 void sig_new_connection(
const QString& ip);
50 void sig_connection_closed(
const QString& ip);
51 void sig_can_listen(
bool);
58 QTcpServer* _server=
nullptr;
61 bool _mp3_enc_available;
67 QStringList _allowed_ips;
68 QStringList _discmissed_ips;
74 bool listen_for_connection();
83 void accept_client(QTcpSocket* socket,
const QString& ip);
84 void reject_client(QTcpSocket* socket,
const QString& ip);
85 void dismiss(
int idx);
87 void disconnect(StreamWriterPtr sw);
88 void disconnect_all();
97 void server_destroyed();
99 void new_client_request();
101 void new_connection(
const QString& ip);
103 void _sl_active_changed();
104 void _sl_port_changed();
105 void _sl_mp3_enc_found();
The StreamWriter class. This class is the interface between StreamDataSender and StreamServer. It watches the client socket and spreads data to its client.
Definition: StreamWriter.h:44
The StreamServer class. This class is listening for new connections and holds and administrates curre...
Definition: StreamServer.h:41
The SayonaraClass class provides access to Settings and notifications.
Definition: SayonaraClass.h:31
Definition: EngineHandler.h:36
Definition: org_mpris_media_player2_adaptor.h:20