From 5bcabbdce058fd803503126708d05f8b04372ca9 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 <0xFEEDC0DE64@gmail.com> Date: Mon, 17 Sep 2018 19:27:52 +0200 Subject: [PATCH] Imported existing sources --- seriesapplication.cpp | 12 ++++++++++++ seriesapplication.h | 15 +++++++++++++++ seriesplugin.cpp | 19 +++++++++++++++++++ seriesplugin.h | 16 ++++++++++++++++ seriesplugin.json | 0 seriesplugin.pro | 19 +++++++++++++++++++ 6 files changed, 81 insertions(+) create mode 100644 seriesapplication.cpp create mode 100644 seriesapplication.h create mode 100644 seriesplugin.cpp create mode 100644 seriesplugin.h create mode 100644 seriesplugin.json create mode 100644 seriesplugin.pro 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)