Imported existing sources

This commit is contained in:
0xFEEDC0DE64
2018-09-17 19:25:45 +02:00
parent ed62594447
commit 795d191f27
6 changed files with 81 additions and 0 deletions

12
proxyapplication.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include "proxyapplication.h"
ProxyApplication::ProxyApplication(const QJsonObject &config, QObject *parent) :
WebApplication(parent)
{
}
void ProxyApplication::start()
{
}

15
proxyapplication.h Normal file
View File

@@ -0,0 +1,15 @@
#pragma once
#include "webapplication.h"
class QJsonObject;
class ProxyApplication : public WebApplication
{
Q_OBJECT
public:
ProxyApplication(const QJsonObject &config, QObject *parent = Q_NULLPTR);
void start() Q_DECL_OVERRIDE;
};

19
proxyplugin.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include "proxyplugin.h"
#include "proxyapplication.h"
ProxyPlugin::ProxyPlugin(QObject *parent) :
WebPlugin(parent)
{
}
QString ProxyPlugin::pluginName() const
{
return QStringLiteral("proxy");
}
WebApplication *ProxyPlugin::createApplication(const QJsonObject &config) const
{
return new ProxyApplication(config);
}

16
proxyplugin.h Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#include "webplugin.h"
class ProxyPlugin : public WebPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "dbsoftware.webserver.plugin/1.0" FILE "proxyplugin.json")
Q_INTERFACES(WebPlugin)
public:
ProxyPlugin(QObject *parent = Q_NULLPTR);
QString pluginName() const Q_DECL_OVERRIDE;
WebApplication *createApplication(const QJsonObject &config) const Q_DECL_OVERRIDE;
};

0
proxyplugin.json Normal file
View File

19
proxyplugin.pro Normal file
View File

@@ -0,0 +1,19 @@
QT += core network
DBLIBS += webserverlib
HEADERS += proxyplugin.h \
proxyapplication.h
SOURCES += proxyplugin.cpp \
proxyapplication.cpp
FORMS +=
RESOURCES +=
TRANSLATIONS +=
OTHER_FILES += proxyplugin.json
include(../plugin.pri)