diff --git a/seriesapplication.cpp b/seriesapplication.cpp new file mode 100644 index 0000000..84e95a4 --- /dev/null +++ b/seriesapplication.cpp @@ -0,0 +1,12 @@ +#include "seriesapplication.h" + +SeriesApplication::SeriesApplication(const QJsonObject &config, QObject *parent) : + WebApplication(parent) +{ + +} + +void SeriesApplication::start() +{ + +} diff --git a/seriesapplication.h b/seriesapplication.h new file mode 100644 index 0000000..bb00dbd --- /dev/null +++ b/seriesapplication.h @@ -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; +}; diff --git a/seriesplugin.cpp b/seriesplugin.cpp new file mode 100644 index 0000000..da279a2 --- /dev/null +++ b/seriesplugin.cpp @@ -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); +} diff --git a/seriesplugin.h b/seriesplugin.h new file mode 100644 index 0000000..fcd56ca --- /dev/null +++ b/seriesplugin.h @@ -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; +}; diff --git a/seriesplugin.json b/seriesplugin.json new file mode 100644 index 0000000..e69de29 diff --git a/seriesplugin.pro b/seriesplugin.pro new file mode 100644 index 0000000..156c397 --- /dev/null +++ b/seriesplugin.pro @@ -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)