Reports plugin #34
@@ -3,5 +3,6 @@ TEMPLATE = subdirs
|
||||
SUBDIRS += advancedviewplugin \
|
||||
lunchmealplugin \
|
||||
presenceplugin \
|
||||
reportsplugin \
|
||||
updaterplugin \
|
||||
weatherplugin
|
||||
|
13
plugins/reportsplugin/reportsplugin.cpp
Normal file
13
plugins/reportsplugin/reportsplugin.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "reportsplugin.h"
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
ReportsPlugin::ReportsPlugin(QObject *parent) :
|
||||
ZeiterfassungPlugin(parent)
|
||||
{
|
||||
qDebug() << "called";
|
||||
}
|
||||
|
||||
void ReportsPlugin::attachTo(MainWindow &mainWindow)
|
||||
{
|
||||
}
|
23
plugins/reportsplugin/reportsplugin.h
Normal file
23
plugins/reportsplugin/reportsplugin.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef REPORTSPLUGIN_H
|
||||
#define REPORTSPLUGIN_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#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
|
0
plugins/reportsplugin/reportsplugin.json
Normal file
0
plugins/reportsplugin/reportsplugin.json
Normal file
27
plugins/reportsplugin/reportsplugin.pro
Normal file
27
plugins/reportsplugin/reportsplugin.pro
Normal file
@@ -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
|
Reference in New Issue
Block a user