Applied WebApplication interface changes

This commit is contained in:
0xFEEDC0DE64
2018-09-22 07:23:06 +02:00
parent bdb57f145a
commit 2d33897c2a
4 changed files with 13 additions and 8 deletions
+6 -1
View File
@@ -4,14 +4,19 @@
class QJsonObject;
class WebServer;
class FileserverApplication : public WebApplication
{
Q_OBJECT
public:
FileserverApplication(const QJsonObject &config, QObject *parent = Q_NULLPTR);
FileserverApplication(const QJsonObject &config, WebServer &webServer);
void start() Q_DECL_OVERRIDE;
void handleRequest(HttpClientConnection *connection, const HttpRequest &request) Q_DECL_OVERRIDE;
private:
WebServer &m_webServer;
};