From 147ce1aef60f09e6b4144256b22d9c7751101716 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 <0xFEEDC0DE64@gmail.com> Date: Fri, 15 Dec 2017 20:04:31 +0100 Subject: [PATCH] Added plugin projects --- plugins/lunchmealplugin/lunchmealplugin.cpp | 6 ++++++ plugins/lunchmealplugin/lunchmealplugin.h | 17 +++++++++++++++++ plugins/lunchmealplugin/lunchmealplugin.pro | 21 +++++++++++++++++++++ plugins/plugins.pro | 5 +++++ plugins/presenceplugin/presenceplugin.cpp | 6 ++++++ plugins/presenceplugin/presenceplugin.h | 17 +++++++++++++++++ plugins/presenceplugin/presenceplugin.pro | 21 +++++++++++++++++++++ plugins/weatherplugin/weatherplugin.cpp | 6 ++++++ plugins/weatherplugin/weatherplugin.h | 17 +++++++++++++++++ plugins/weatherplugin/weatherplugin.pro | 21 +++++++++++++++++++++ zeiterfassung.pro | 4 +++- zeiterfassung/zeiterfassung.pro | 2 +- zeiterfassunglib/zeiterfassunglib.pro | 2 +- 13 files changed, 142 insertions(+), 3 deletions(-) create mode 100644 plugins/lunchmealplugin/lunchmealplugin.cpp create mode 100644 plugins/lunchmealplugin/lunchmealplugin.h create mode 100644 plugins/lunchmealplugin/lunchmealplugin.pro create mode 100644 plugins/plugins.pro create mode 100644 plugins/presenceplugin/presenceplugin.cpp create mode 100644 plugins/presenceplugin/presenceplugin.h create mode 100644 plugins/presenceplugin/presenceplugin.pro create mode 100644 plugins/weatherplugin/weatherplugin.cpp create mode 100644 plugins/weatherplugin/weatherplugin.h create mode 100644 plugins/weatherplugin/weatherplugin.pro diff --git a/plugins/lunchmealplugin/lunchmealplugin.cpp b/plugins/lunchmealplugin/lunchmealplugin.cpp new file mode 100644 index 0000000..b07fbeb --- /dev/null +++ b/plugins/lunchmealplugin/lunchmealplugin.cpp @@ -0,0 +1,6 @@ +#include "lunchmealplugin.h" + +LunchMealPlugin::LunchMealPlugin(QObject *parent) : QObject(parent) +{ + +} diff --git a/plugins/lunchmealplugin/lunchmealplugin.h b/plugins/lunchmealplugin/lunchmealplugin.h new file mode 100644 index 0000000..3fe3055 --- /dev/null +++ b/plugins/lunchmealplugin/lunchmealplugin.h @@ -0,0 +1,17 @@ +#ifndef LUNCHMEALPLUGIN_H +#define LUNCHMEALPLUGIN_H + +#include + +class Q_DECL_EXPORT LunchMealPlugin : public QObject +{ + Q_OBJECT +public: + explicit LunchMealPlugin(QObject *parent = 0); + +signals: + +public slots: +}; + +#endif // LUNCHMEALPLUGIN_H diff --git a/plugins/lunchmealplugin/lunchmealplugin.pro b/plugins/lunchmealplugin/lunchmealplugin.pro new file mode 100644 index 0000000..306a80a --- /dev/null +++ b/plugins/lunchmealplugin/lunchmealplugin.pro @@ -0,0 +1,21 @@ +QT += core network gui widgets + +TARGET = lunchmealplugin +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 += \ + lunchmealplugin.h + +SOURCES += \ + lunchmealplugin.cpp diff --git a/plugins/plugins.pro b/plugins/plugins.pro new file mode 100644 index 0000000..5335e51 --- /dev/null +++ b/plugins/plugins.pro @@ -0,0 +1,5 @@ +TEMPLATE = subdirs + +SUBDIRS += lunchmealplugin \ + presenceplugin \ + weatherplugin diff --git a/plugins/presenceplugin/presenceplugin.cpp b/plugins/presenceplugin/presenceplugin.cpp new file mode 100644 index 0000000..146fd65 --- /dev/null +++ b/plugins/presenceplugin/presenceplugin.cpp @@ -0,0 +1,6 @@ +#include "presenceplugin.h" + +PresencePlugin::PresencePlugin(QObject *parent) : QObject(parent) +{ + +} diff --git a/plugins/presenceplugin/presenceplugin.h b/plugins/presenceplugin/presenceplugin.h new file mode 100644 index 0000000..e8c14b2 --- /dev/null +++ b/plugins/presenceplugin/presenceplugin.h @@ -0,0 +1,17 @@ +#ifndef PRESENCEPLUGIN_H +#define PRESENCEPLUGIN_H + +#include + +class Q_DECL_EXPORT PresencePlugin : public QObject +{ + Q_OBJECT +public: + explicit PresencePlugin(QObject *parent = 0); + +signals: + +public slots: +}; + +#endif // PRESENCEPLUGIN_H diff --git a/plugins/presenceplugin/presenceplugin.pro b/plugins/presenceplugin/presenceplugin.pro new file mode 100644 index 0000000..a155df1 --- /dev/null +++ b/plugins/presenceplugin/presenceplugin.pro @@ -0,0 +1,21 @@ +QT += core network gui widgets + +TARGET = presenceplugin +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 += \ + presenceplugin.h + +SOURCES += \ + presenceplugin.cpp diff --git a/plugins/weatherplugin/weatherplugin.cpp b/plugins/weatherplugin/weatherplugin.cpp new file mode 100644 index 0000000..d9c5e95 --- /dev/null +++ b/plugins/weatherplugin/weatherplugin.cpp @@ -0,0 +1,6 @@ +#include "weatherplugin.h" + +WeatherPlugin::WeatherPlugin(QObject *parent) : QObject(parent) +{ + +} diff --git a/plugins/weatherplugin/weatherplugin.h b/plugins/weatherplugin/weatherplugin.h new file mode 100644 index 0000000..6420aba --- /dev/null +++ b/plugins/weatherplugin/weatherplugin.h @@ -0,0 +1,17 @@ +#ifndef WEATHERPLUGIN_H +#define WEATHERPLUGIN_H + +#include + +class Q_DECL_EXPORT WeatherPlugin : public QObject +{ + Q_OBJECT +public: + explicit WeatherPlugin(QObject *parent = 0); + +signals: + +public slots: +}; + +#endif // WEATHERPLUGIN_H diff --git a/plugins/weatherplugin/weatherplugin.pro b/plugins/weatherplugin/weatherplugin.pro new file mode 100644 index 0000000..5e7e7ad --- /dev/null +++ b/plugins/weatherplugin/weatherplugin.pro @@ -0,0 +1,21 @@ +QT += core network gui widgets + +TARGET = weatherplugin +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 += \ + weatherplugin.h + +SOURCES += \ + weatherplugin.cpp diff --git a/zeiterfassung.pro b/zeiterfassung.pro index 9c52032..337265b 100644 --- a/zeiterfassung.pro +++ b/zeiterfassung.pro @@ -1,6 +1,8 @@ TEMPLATE = subdirs -SUBDIRS += zeiterfassung \ +SUBDIRS += plugins \ + zeiterfassung \ zeiterfassunglib +plugins.depends += zeiterfassunglib zeiterfassung.depends += zeiterfassunglib diff --git a/zeiterfassung/zeiterfassung.pro b/zeiterfassung/zeiterfassung.pro index 671ba01..a3b6d96 100755 --- a/zeiterfassung/zeiterfassung.pro +++ b/zeiterfassung/zeiterfassung.pro @@ -1,4 +1,4 @@ -QT += network gui widgets uitools +QT += core network gui widgets uitools TARGET = zeiterfassung TEMPLATE = app diff --git a/zeiterfassunglib/zeiterfassunglib.pro b/zeiterfassunglib/zeiterfassunglib.pro index 33dcaf4..28013eb 100644 --- a/zeiterfassunglib/zeiterfassunglib.pro +++ b/zeiterfassunglib/zeiterfassunglib.pro @@ -1,4 +1,4 @@ -QT += network gui widgets +QT += core network gui widgets TARGET = zeiterfassunglib TEMPLATE = lib