Imported existing sources
This commit is contained in:
12
wifilampapplication.cpp
Normal file
12
wifilampapplication.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "wifilampapplication.h"
|
||||
|
||||
WifiLampApplication::WifiLampApplication(const QJsonObject &config, QObject *parent) :
|
||||
WebApplication(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void WifiLampApplication::start()
|
||||
{
|
||||
|
||||
}
|
15
wifilampapplication.h
Normal file
15
wifilampapplication.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include "webapplication.h"
|
||||
|
||||
class QJsonObject;
|
||||
|
||||
class WifiLampApplication : public WebApplication
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
WifiLampApplication(const QJsonObject &config, QObject *parent = Q_NULLPTR);
|
||||
|
||||
void start() Q_DECL_OVERRIDE;
|
||||
};
|
19
wifilampplugin.cpp
Normal file
19
wifilampplugin.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "wifilampplugin.h"
|
||||
|
||||
#include "wifilampapplication.h"
|
||||
|
||||
WifiLampPlugin::WifiLampPlugin(QObject *parent) :
|
||||
WebPlugin(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QString WifiLampPlugin::pluginName() const
|
||||
{
|
||||
return QStringLiteral("wifilamp");
|
||||
}
|
||||
|
||||
WebApplication *WifiLampPlugin::createApplication(const QJsonObject &config) const
|
||||
{
|
||||
return new WifiLampApplication(config);
|
||||
}
|
16
wifilampplugin.h
Normal file
16
wifilampplugin.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include "webplugin.h"
|
||||
|
||||
class WifiLampPlugin : public WebPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "dbsoftware.webserver.plugin/1.0" FILE "wifilampplugin.json")
|
||||
Q_INTERFACES(WebPlugin)
|
||||
|
||||
public:
|
||||
WifiLampPlugin(QObject *parent = Q_NULLPTR);
|
||||
|
||||
QString pluginName() const Q_DECL_OVERRIDE;
|
||||
WebApplication *createApplication(const QJsonObject &config) const Q_DECL_OVERRIDE;
|
||||
};
|
0
wifilampplugin.json
Normal file
0
wifilampplugin.json
Normal file
19
wifilampplugin.pro
Normal file
19
wifilampplugin.pro
Normal file
@@ -0,0 +1,19 @@
|
||||
QT += core network
|
||||
|
||||
DBLIBS += webserverlib
|
||||
|
||||
HEADERS += wifilampplugin.h \
|
||||
wifilampapplication.h
|
||||
|
||||
SOURCES += wifilampplugin.cpp \
|
||||
wifilampapplication.cpp
|
||||
|
||||
FORMS +=
|
||||
|
||||
RESOURCES +=
|
||||
|
||||
TRANSLATIONS +=
|
||||
|
||||
OTHER_FILES += wifilampplugin.json
|
||||
|
||||
include(../plugin.pri)
|
Reference in New Issue
Block a user