6 #include <QJsonDocument> 9 #include <utils/Logger.h> 12 #include <utils/settings.h> 22 WebServer (
const QJsonDocument& config, QObject * parent = 0);
29 quint16 getPort() {
return _port; };
57 void onServerStopped (
void);
58 void onServerStarted (quint16 port);
59 void onServerError (QString msg);
69 QJsonDocument _config;
77 const QString WEBSERVER_DEFAULT_PATH =
":/webconfig";
78 const quint16 WEBSERVER_DEFAULT_PORT = 8090;
void setSSDPDescription(const QString &desc)
Set a new description, if empty the description is NotFound for clients.
Definition: WebServer.cpp:124
void initServer()
Init server after thread start.
Definition: WebServer.cpp:28
void portChanged(const quint16 &port)
Emits whenever the port changes (doesn't compare prev <> now)
Definition: bonjourserviceregister.h:43
bool isInited()
check if server has been inited
Definition: WebServer.h:32
void stateChange(const bool newState)
whenever server is started or stopped (to sync with SSDPHandler)
Definition: QtHttpServer.h:37
Definition: WebServer.h:18
Definition: StaticFileServing.h:14
void handleSettingsUpdate(const settings::type &type, const QJsonDocument &config)
Handle settings update from Hyperion Settingsmanager emit or this constructor.
Definition: WebServer.cpp:75