 |
Sayonara Player
|
21 #ifndef STREAM_WRITER_H
22 #define STREAM_WRITER_H
24 #include "StreamHttpParser.h"
25 #include "Interfaces/Engine/AudioDataReceiverInterface.h"
26 #include "Utils/Pimpl.h"
46 void sigNewConnection(
const QString&
ip);
50 enum class Type : uint8_t
139 void socketDisconnected();
144 using StreamWriterPtr = std::shared_ptr<StreamWriter>;
bool sendMetadata()
Send track information (see StreamDataSender)
bool sendFavicon()
Send the http favicon (see StreamDataSender)
The RawSoundReceiver interface.
Definition: AudioDataReceiverInterface.h:67
void dismiss()
stop sending sound over the client socket
void disconnect()
disconnect a client socket
void changeTrack(const MetaData &md)
send new icy data to clients, and send new metadata to remote controls.
bool sendBackground()
Send website background (see StreamDataSender)
HttpAnswer
The HttpAnswer enum.
Definition: StreamHttpParser.h:40
QString ip() const
get client ip address
bool sendHeader(bool reject)
send a appropriate header based on the type of request (see StreamDataSender)
bool sendPlaylist()
Send a m3u playlist (see StreamDataSender)
bool sendHtml5()
send a html5 website (see StreamDataSender)
void writeAudioData(const QByteArray &data) override
new audio data has arrived and has to be forwarded to the socket
StreamWriter(QTcpSocket *socket, const QString &ip, const MetaData &md)
StreamWriter.
The StreamWriter class. This class is the interface between StreamDataSender and StreamServer....
Definition: StreamWriter.h:41