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