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" 48 void sigNewConnection(
const QString&
ip);
53 enum class Type : uint8_t
144 void socketDisconnected();
149 using StreamWriterPtr=std::shared_ptr<StreamWriter>;
The StreamWriter class. This class is the interface between StreamDataSender and StreamServer....
Definition: StreamWriter.h:39
StreamWriter(QTcpSocket *socket, const QString &ip, const MetaData &md)
StreamWriter.
bool sendHtml5()
send a html5 website (see StreamDataSender)
The StreamDataSender class. This class is used for sending the raw bytes.
Definition: StreamDataSender.h:32
void changeTrack(const MetaData &md)
send new icy data to clients, and send new metadata to remote controls.
bool sendMetadata()
Send track information (see StreamDataSender)
QString ip() const
get client ip address
void dismiss()
stop sending sound over the client socket
void disconnect()
disconnect a client socket
The RawSoundReceiver interface.
Definition: AudioDataReceiverInterface.h:66
bool sendBackground()
Send website background (see StreamDataSender)
bool sendHeader(bool reject)
send a appropriate header based on the type of request (see StreamDataSender)
void writeAudioData(const QByteArray &data) override
new audio data has arrived and has to be forwarded to the socket
HttpAnswer
The HttpAnswer enum.
Definition: StreamHttpParser.h:38
bool sendFavicon()
Send the http favicon (see StreamDataSender)
bool sendPlaylist()
Send a m3u playlist (see StreamDataSender)