Applied WebApplication interface changes
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user