diff --git a/plugins/plugins.pro b/plugins/plugins.pro index ceae520..f8c26c3 100644 --- a/plugins/plugins.pro +++ b/plugins/plugins.pro @@ -3,5 +3,6 @@ TEMPLATE = subdirs SUBDIRS += advancedviewplugin \ lunchmealplugin \ presenceplugin \ + reportsplugin \ updaterplugin \ weatherplugin diff --git a/plugins/reportsplugin/reportsplugin.cpp b/plugins/reportsplugin/reportsplugin.cpp new file mode 100644 index 0000000..b8ddf29 --- /dev/null +++ b/plugins/reportsplugin/reportsplugin.cpp @@ -0,0 +1,13 @@ +#include "reportsplugin.h" + +#include + +ReportsPlugin::ReportsPlugin(QObject *parent) : + ZeiterfassungPlugin(parent) +{ + qDebug() << "called"; +} + +void ReportsPlugin::attachTo(MainWindow &mainWindow) +{ +} diff --git a/plugins/reportsplugin/reportsplugin.h b/plugins/reportsplugin/reportsplugin.h new file mode 100644 index 0000000..782caa2 --- /dev/null +++ b/plugins/reportsplugin/reportsplugin.h @@ -0,0 +1,23 @@ +#ifndef REPORTSPLUGIN_H +#define REPORTSPLUGIN_H + +#include + +#include "zeiterfassungplugin.h" + +class MainWindow; + +class Q_DECL_EXPORT ReportsPlugin : public ZeiterfassungPlugin +{ + Q_OBJECT + Q_PLUGIN_METADATA(IID "dbsoftware.zeiterfassung.plugin/1.0" FILE "reportsplugin.json") + Q_INTERFACES(ZeiterfassungPlugin) + +public: + explicit ReportsPlugin(QObject *parent = Q_NULLPTR); + + // ZeiterfassungPlugin interface + void attachTo(MainWindow &mainWindow) Q_DECL_OVERRIDE; +}; + +#endif // REPORTSPLUGIN_H diff --git a/plugins/reportsplugin/reportsplugin.json b/plugins/reportsplugin/reportsplugin.json new file mode 100644 index 0000000..e69de29 diff --git a/plugins/reportsplugin/reportsplugin.pro b/plugins/reportsplugin/reportsplugin.pro new file mode 100644 index 0000000..4673528 --- /dev/null +++ b/plugins/reportsplugin/reportsplugin.pro @@ -0,0 +1,27 @@ +QT += core network gui widgets + +TARGET = reportsplugin +TEMPLATE = lib + +CONFIG += shared c++14 + +DESTDIR = $${OUT_PWD}/../../bin/plugins/zeiterfassung + +LIBS += -L$$OUT_PWD/../../lib -lzeiterfassunglib + +INCLUDEPATH += $$PWD/../../zeiterfassunglib +DEPENDPATH += $$PWD/../../zeiterfassunglib + +DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT + +HEADERS += reportsplugin.h + +SOURCES += reportsplugin.cpp + +FORMS += + +RESOURCES += + +TRANSLATIONS += + +OTHER_FILES += reportsplugin.json