Added plugin projects

This commit is contained in:
0xFEEDC0DE64
2017-12-15 20:04:31 +01:00
parent a65a2cefff
commit 147ce1aef6
13 changed files with 142 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
#include "lunchmealplugin.h"
LunchMealPlugin::LunchMealPlugin(QObject *parent) : QObject(parent)
{
}

View File

@@ -0,0 +1,17 @@
#ifndef LUNCHMEALPLUGIN_H
#define LUNCHMEALPLUGIN_H
#include <QObject>
class Q_DECL_EXPORT LunchMealPlugin : public QObject
{
Q_OBJECT
public:
explicit LunchMealPlugin(QObject *parent = 0);
signals:
public slots:
};
#endif // LUNCHMEALPLUGIN_H

View File

@@ -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

5
plugins/plugins.pro Normal file
View File

@@ -0,0 +1,5 @@
TEMPLATE = subdirs
SUBDIRS += lunchmealplugin \
presenceplugin \
weatherplugin

View File

@@ -0,0 +1,6 @@
#include "presenceplugin.h"
PresencePlugin::PresencePlugin(QObject *parent) : QObject(parent)
{
}

View File

@@ -0,0 +1,17 @@
#ifndef PRESENCEPLUGIN_H
#define PRESENCEPLUGIN_H
#include <QObject>
class Q_DECL_EXPORT PresencePlugin : public QObject
{
Q_OBJECT
public:
explicit PresencePlugin(QObject *parent = 0);
signals:
public slots:
};
#endif // PRESENCEPLUGIN_H

View File

@@ -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

View File

@@ -0,0 +1,6 @@
#include "weatherplugin.h"
WeatherPlugin::WeatherPlugin(QObject *parent) : QObject(parent)
{
}

View File

@@ -0,0 +1,17 @@
#ifndef WEATHERPLUGIN_H
#define WEATHERPLUGIN_H
#include <QObject>
class Q_DECL_EXPORT WeatherPlugin : public QObject
{
Q_OBJECT
public:
explicit WeatherPlugin(QObject *parent = 0);
signals:
public slots:
};
#endif // WEATHERPLUGIN_H

View File

@@ -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

View File

@@ -1,6 +1,8 @@
TEMPLATE = subdirs
SUBDIRS += zeiterfassung \
SUBDIRS += plugins \
zeiterfassung \
zeiterfassunglib
plugins.depends += zeiterfassunglib
zeiterfassung.depends += zeiterfassunglib

View File

@@ -1,4 +1,4 @@
QT += network gui widgets uitools
QT += core network gui widgets uitools
TARGET = zeiterfassung
TEMPLATE = app

View File

@@ -1,4 +1,4 @@
QT += network gui widgets
QT += core network gui widgets
TARGET = zeiterfassunglib
TEMPLATE = lib