Skeleton for shop plugin.
parent
d93e470c10
commit
aa5b3cf76f
@ -0,0 +1,6 @@
|
||||
#include "voucher.h"
|
||||
|
||||
Voucher::Voucher(QObject *parent) : QObject(parent)
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
#ifndef VOUCHER_H
|
||||
#define VOUCHER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class Voucher : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit Voucher(QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
};
|
||||
|
||||
#endif // VOUCHER_H
|
@ -0,0 +1,17 @@
|
||||
#include "shop.h"
|
||||
#include <QIcon>
|
||||
|
||||
|
||||
Shop::Shop()
|
||||
{
|
||||
}
|
||||
|
||||
void Shop::initServiceUi()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QIcon Shop::pluginIcon()
|
||||
{
|
||||
return QIcon();
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
#ifndef SHOP_H
|
||||
#define SHOP_H
|
||||
|
||||
#include <QObject>
|
||||
#include <core.h>
|
||||
#include "shop_global.h"
|
||||
|
||||
class SHOPSHARED_EXPORT Shop : public QObject, IMetaDataPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Q_PLUGIN_METADATA(IID PluginInterface_iid FILE "shop.json")
|
||||
Q_INTERFACES(IPlugin)
|
||||
|
||||
public:
|
||||
Shop();
|
||||
|
||||
protected:
|
||||
void initServiceUi() Q_DECL_OVERRIDE;
|
||||
|
||||
|
||||
// IPlugin interface
|
||||
public:
|
||||
virtual QIcon pluginIcon();
|
||||
};
|
||||
|
||||
#endif // SHOP_H
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"id" : "SHOP",
|
||||
"name" : {
|
||||
"default" : "Shop",
|
||||
"CZ" : "Prodejna"
|
||||
},
|
||||
"descriptoin" : {
|
||||
"default" : "",
|
||||
"CZ" : ""
|
||||
},
|
||||
"schemaVersion" : 1,
|
||||
"sql" : [
|
||||
|
||||
|
||||
],
|
||||
"dependencies" : []
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
#-------------------------------------------------
|
||||
#
|
||||
# Project created by QtCreator 2016-04-06T20:45:20
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT += widgets sql
|
||||
|
||||
TARGET = shop
|
||||
TEMPLATE = lib
|
||||
|
||||
DEFINES += SHOP_LIBRARY\
|
||||
_GLIBCXX_USE_CXX11_ABI=1
|
||||
|
||||
SOURCES += shop.cpp \
|
||||
data/voucher.cpp
|
||||
|
||||
HEADERS += shop.h\
|
||||
shop_global.h \
|
||||
data/voucher.h
|
||||
|
||||
unix {
|
||||
target.path = /usr/lib
|
||||
INSTALLS += target
|
||||
QMAKE_CXXFLAGS += -std=c++11
|
||||
QMAKE_CXXFLAGS += -Wno-unknown-pragmas
|
||||
}
|
||||
|
||||
win32 {
|
||||
QMAKE_CXXFLAGS += -wd4995 -wd4068
|
||||
}
|
||||
|
||||
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../core/release/ -lcore
|
||||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../core/debug/ -lcore
|
||||
else:unix: LIBS += -L$$OUT_PWD/../core/ -lcore
|
||||
|
||||
INCLUDEPATH += $$PWD/../core
|
||||
DEPENDPATH += $$PWD/../core
|
||||
|
||||
DESTDIR = ../plugins
|
||||
|
||||
OTHER_FILES += shop.json
|
||||
|
||||
#ODB_FILES = shop/data/....h
|
||||
H_DIR = $$PWD/data/*.h
|
||||
include(../odb.pri)
|
||||
|
||||
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../qdecimal/lib/ -lqdecimal -ldecnumber
|
||||
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../qdecimal/lib/ -lqdecimal -ldecnumber
|
||||
else:unix: LIBS += -L$$OUT_PWD/../qdecimal/lib/ -lqdecimal -ldecnumber
|
||||
|
||||
INCLUDEPATH += $$PWD/../qdecimal/src
|
||||
INCLUDEPATH += $$PWD/../qdecimal/decnumber
|
||||
DEPENDPATH += $$PWD/../qdecimal/src
|
||||
|
||||
RESOURCES += \
|
||||
shoprc.qrc
|
||||
|
@ -0,0 +1,12 @@
|
||||
#ifndef SHOP_GLOBAL_H
|
||||
#define SHOP_GLOBAL_H
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#if defined(SHOP_LIBRARY)
|
||||
# define SHOPSHARED_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
# define SHOPSHARED_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
#endif // SHOP_GLOBAL_H
|
@ -0,0 +1 @@
|
||||
<RCC/>
|
Loading…
Reference in New Issue