Imported existing sources
This commit is contained in:
12
proxyapplication.cpp
Normal file
12
proxyapplication.cpp
Normal 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
15
proxyapplication.h
Normal 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
19
proxyplugin.cpp
Normal 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
16
proxyplugin.h
Normal 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
0
proxyplugin.json
Normal file
19
proxyplugin.pro
Normal file
19
proxyplugin.pro
Normal 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)
|
Reference in New Issue
Block a user