Release v1.4 #11
@@ -1,6 +1,14 @@
|
||||
#include "lunchmealplugin.h"
|
||||
|
||||
LunchMealPlugin::LunchMealPlugin(QObject *parent) : QObject(parent)
|
||||
#include <QDebug>
|
||||
|
||||
LunchMealPlugin::LunchMealPlugin(QObject *parent) :
|
||||
ZeiterfassungPlugin(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void LunchMealPlugin::initialize()
|
||||
{
|
||||
qDebug() << "called";
|
||||
}
|
||||
|
@@ -3,15 +3,19 @@
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class Q_DECL_EXPORT LunchMealPlugin : public QObject
|
||||
#include "zeiterfassungplugin.h"
|
||||
|
||||
class Q_DECL_EXPORT LunchMealPlugin : public ZeiterfassungPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "dbsoftware.zeiterfassung.plugin/1.0" FILE "lunchmealplugin.json")
|
||||
Q_INTERFACES(ZeiterfassungPlugin)
|
||||
|
||||
public:
|
||||
explicit LunchMealPlugin(QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
// ZeiterfassungPlugin interface
|
||||
void initialize() Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // LUNCHMEALPLUGIN_H
|
||||
|
0
plugins/lunchmealplugin/lunchmealplugin.json
Normal file
0
plugins/lunchmealplugin/lunchmealplugin.json
Normal file
@@ -9,13 +9,13 @@ DESTDIR = $${OUT_PWD}/../../bin/plugins/zeiterfassung
|
||||
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassunglib
|
||||
|
||||
INCLUDEPATH += $$PWD/../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../zeiterfassunglib
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassunglib
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT
|
||||
|
||||
HEADERS += \
|
||||
lunchmealplugin.h
|
||||
HEADERS += lunchmealplugin.h
|
||||
|
||||
SOURCES += \
|
||||
lunchmealplugin.cpp
|
||||
SOURCES += lunchmealplugin.cpp
|
||||
|
||||
OTHER_FILES += lunchmealplugin.json
|
||||
|
@@ -1,6 +1,14 @@
|
||||
#include "presenceplugin.h"
|
||||
|
||||
PresencePlugin::PresencePlugin(QObject *parent) : QObject(parent)
|
||||
#include <QDebug>
|
||||
|
||||
PresencePlugin::PresencePlugin(QObject *parent) :
|
||||
ZeiterfassungPlugin(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void PresencePlugin::initialize()
|
||||
{
|
||||
qDebug() << "called";
|
||||
}
|
||||
|
@@ -3,15 +3,19 @@
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class Q_DECL_EXPORT PresencePlugin : public QObject
|
||||
#include "zeiterfassungplugin.h"
|
||||
|
||||
class Q_DECL_EXPORT PresencePlugin : public ZeiterfassungPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "dbsoftware.zeiterfassung.plugin/1.0" FILE "presenceplugin.json")
|
||||
Q_INTERFACES(ZeiterfassungPlugin)
|
||||
|
||||
public:
|
||||
explicit PresencePlugin(QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
// ZeiterfassungPlugin interface
|
||||
void initialize() Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // PRESENCEPLUGIN_H
|
||||
|
0
plugins/presenceplugin/presenceplugin.json
Normal file
0
plugins/presenceplugin/presenceplugin.json
Normal file
@@ -9,13 +9,13 @@ DESTDIR = $${OUT_PWD}/../../bin/plugins/zeiterfassung
|
||||
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassunglib
|
||||
|
||||
INCLUDEPATH += $$PWD/../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../zeiterfassunglib
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassunglib
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT
|
||||
|
||||
HEADERS += \
|
||||
presenceplugin.h
|
||||
HEADERS += presenceplugin.h
|
||||
|
||||
SOURCES += \
|
||||
presenceplugin.cpp
|
||||
SOURCES += presenceplugin.cpp
|
||||
|
||||
OTHER_FILES += presenceplugin.json
|
||||
|
@@ -1,6 +1,14 @@
|
||||
#include "weatherplugin.h"
|
||||
|
||||
WeatherPlugin::WeatherPlugin(QObject *parent) : QObject(parent)
|
||||
#include <QDebug>
|
||||
|
||||
WeatherPlugin::WeatherPlugin(QObject *parent) :
|
||||
ZeiterfassungPlugin(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void WeatherPlugin::initialize()
|
||||
{
|
||||
qDebug() << "called";
|
||||
}
|
||||
|
@@ -3,15 +3,19 @@
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class Q_DECL_EXPORT WeatherPlugin : public QObject
|
||||
#include "zeiterfassungplugin.h"
|
||||
|
||||
class Q_DECL_EXPORT WeatherPlugin : public ZeiterfassungPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "dbsoftware.zeiterfassung.plugin/1.0" FILE "weatherplugin.json")
|
||||
Q_INTERFACES(ZeiterfassungPlugin)
|
||||
|
||||
public:
|
||||
explicit WeatherPlugin(QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
// ZeiterfassungPlugin interface
|
||||
void initialize() Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // WEATHERPLUGIN_H
|
||||
|
0
plugins/weatherplugin/weatherplugin.json
Normal file
0
plugins/weatherplugin/weatherplugin.json
Normal file
@@ -9,13 +9,13 @@ DESTDIR = $${OUT_PWD}/../../bin/plugins/zeiterfassung
|
||||
|
||||
LIBS += -L$$OUT_PWD/../../lib -lzeiterfassunglib
|
||||
|
||||
INCLUDEPATH += $$PWD/../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../zeiterfassunglib
|
||||
INCLUDEPATH += $$PWD/../../zeiterfassunglib
|
||||
DEPENDPATH += $$PWD/../../zeiterfassunglib
|
||||
|
||||
DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSAGELOGCONTEXT
|
||||
|
||||
HEADERS += \
|
||||
weatherplugin.h
|
||||
HEADERS += weatherplugin.h
|
||||
|
||||
SOURCES += \
|
||||
weatherplugin.cpp
|
||||
SOURCES += weatherplugin.cpp
|
||||
|
||||
OTHER_FILES += weatherplugin.json
|
||||
|
@@ -11,6 +11,7 @@ DEFINES += QT_DEPRECATED_WARNINGS QT_DISABLE_DEPRECATED_BEFORE=0x060000 QT_MESSA
|
||||
DEFINES += ZEITERFASSUNGLIB_LIBRARY
|
||||
|
||||
SOURCES += zeiterfassungapi.cpp \
|
||||
zeiterfassungplugin.cpp \
|
||||
replies/createtimeassignmentreply.cpp \
|
||||
replies/updatebookingreply.cpp \
|
||||
replies/getbookingsreply.cpp \
|
||||
@@ -30,6 +31,7 @@ SOURCES += zeiterfassungapi.cpp \
|
||||
HEADERS += cpp14polyfills.h \
|
||||
zeiterfassunglib_global.h \
|
||||
zeiterfassungapi.h \
|
||||
zeiterfassungplugin.h \
|
||||
replies/createtimeassignmentreply.h \
|
||||
replies/updatebookingreply.h \
|
||||
replies/getbookingsreply.h \
|
||||
|
7
zeiterfassunglib/zeiterfassungplugin.cpp
Normal file
7
zeiterfassunglib/zeiterfassungplugin.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include "zeiterfassungplugin.h"
|
||||
|
||||
ZeiterfassungPlugin::ZeiterfassungPlugin(QObject *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
|
||||
}
|
18
zeiterfassunglib/zeiterfassungplugin.h
Normal file
18
zeiterfassunglib/zeiterfassungplugin.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef ZEITERFASSUNGPLUGIN_H
|
||||
#define ZEITERFASSUNGPLUGIN_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class ZeiterfassungPlugin : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ZeiterfassungPlugin(QObject *parent = 0);
|
||||
|
||||
virtual void initialize() = 0;
|
||||
};
|
||||
|
||||
Q_DECLARE_INTERFACE(ZeiterfassungPlugin, "dbsoftware.zeiterfassung.plugin/1.0")
|
||||
|
||||
#endif // ZEITERFASSUNGPLUGIN_H
|
Reference in New Issue
Block a user