Compare commits
8 Commits
909d1355a0
...
a139fdb58f
Author | SHA1 | Date | |
---|---|---|---|
a139fdb58f | |||
6491646243 | |||
af351ee092 | |||
8490ba8a3a | |||
f9680105ab | |||
c8c19e8cfc | |||
c5654509a3 | |||
be98f7e178 |
@ -46,7 +46,7 @@ contains( CONFIG, PTU5_YOCTO ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TARGET = ATBVMCPlugin
|
TARGET = ATBVMCPlugin
|
||||||
#DESTDIR = ../plugins
|
VERSION = "1.0.0"
|
||||||
INTERFACE = VMCInterface
|
INTERFACE = VMCInterface
|
||||||
INTERFACE_DEFINITION = $${PWD}/src/ATBAPP/VMCInterface.h
|
INTERFACE_DEFINITION = $${PWD}/src/ATBAPP/VMCInterface.h
|
||||||
|
|
||||||
@ -60,18 +60,22 @@ win32 {
|
|||||||
BUILD_TIME=$$system("date +%H:%M:%S")
|
BUILD_TIME=$$system("date +%H:%M:%S")
|
||||||
}
|
}
|
||||||
|
|
||||||
GIT_COMMIT=$$system("git log -1 --format=oneline | cut -d' ' -f1")
|
GIT_COMMIT=$$system("git log -n 1 --format=oneline | cut -d' ' -f1")
|
||||||
|
GIT_DESCRIBE=$$system("git describe")
|
||||||
|
|
||||||
EXTENDED_VERSION="$${VERSION}-$${GIT_COMMIT}"
|
EXTENDED_VERSION="$${VERSION}-$${GIT_COMMIT}"
|
||||||
|
|
||||||
CONFIG += c++17
|
CONFIG += c++17
|
||||||
|
|
||||||
DEFINES+=APP_VERSION=\\\"$$VERSION\\\"
|
|
||||||
DEFINES+=ATB_QT_VERSION=\\\"$${QT_VERSION}\\\"
|
DEFINES+=ATB_QT_VERSION=\\\"$${QT_VERSION}\\\"
|
||||||
DEFINES+=APP_BUILD_DATE=\\\"$$BUILD_DATE\\\"
|
DEFINES+=PLUGIN_BUILD_DATE=\\\"$$BUILD_DATE\\\"
|
||||||
DEFINES+=APP_BUILD_TIME=\\\"$$BUILD_TIME\\\"
|
DEFINES+=PLUGIN_BUILD_TIME=\\\"$$BUILD_TIME\\\"
|
||||||
DEFINES+=APP_EXTENDED_VERSION=\\\"$$EXTENDED_VERSION\\\"
|
DEFINES+=PLUGIN_EXTENDED_VERSION=\\\"$${EXTENDED_VERSION}\\\"
|
||||||
|
|
||||||
|
DEFINES+=INTERFACE=\\\"VMCInterface\\\"
|
||||||
|
DEFINES+=INTERFACE_VERSION=\\\"eu.atb.ptu.plugin.VMCInterface/1.0\\\"
|
||||||
|
DEFINES+=PLUGIN_NAME=\\\"ATBVMCPlugin\\\"
|
||||||
|
DEFINES+=PLUGIN_VERSION=\\\"$${PLUGIN_BUILD_DATE}_$${PLUGIN_BUILD_TIME}\\\"
|
||||||
|
|
||||||
# Default rules for deployment.
|
# Default rules for deployment.
|
||||||
#qnx: target.path = /tmp/$${TARGET}/bin
|
#qnx: target.path = /tmp/$${TARGET}/bin
|
||||||
@ -80,7 +84,6 @@ DEFINES+=APP_EXTENDED_VERSION=\\\"$$EXTENDED_VERSION\\\"
|
|||||||
|
|
||||||
# ATBAPP interface
|
# ATBAPP interface
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
include/interfaces.h \
|
|
||||||
src/ATBAPP/VMCInterface.h \
|
src/ATBAPP/VMCInterface.h \
|
||||||
src/ATBAPP/ATBVMCPlugin.h \
|
src/ATBAPP/ATBVMCPlugin.h \
|
||||||
src/ATBAPP/ATBAPPplugin.h \
|
src/ATBAPP/ATBAPPplugin.h \
|
||||||
|
@ -36,7 +36,17 @@ QString const &ATBVMCPlugin::getPluginInfo() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ATBVMCPlugin::setPluginInfo(QString const &info) {
|
void ATBVMCPlugin::setPluginInfo(QString const &info) {
|
||||||
m_pluginInfo = info;
|
|
||||||
|
Q_UNUSED(info);
|
||||||
|
|
||||||
|
QStringList lst;
|
||||||
|
lst << QString(" Interface: ") + INTERFACE;
|
||||||
|
lst << QString(" Interface Version: ") + INTERFACE_VERSION;
|
||||||
|
lst << QString(" Plugin name: ") + PLUGIN_NAME;
|
||||||
|
lst << QString(" Plugin version: ") + PLUGIN_VERSION;
|
||||||
|
lst << QString("Plugin extended version: ") + PLUGIN_EXTENDED_VERSION;
|
||||||
|
|
||||||
|
m_pluginInfo = lst.join('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
#include "src/ATBAPP/VMCInterface.h"
|
#include "src/ATBAPP/VMCInterface.h"
|
||||||
#include "src/ATBAPP/UnifiedDCVMCInterface.h"
|
#include "src/ATBAPP/UnifiedDCVMCInterface.h"
|
||||||
|
|
||||||
#include "version.h"
|
|
||||||
#include "vmc.h"
|
#include "vmc.h"
|
||||||
|
|
||||||
class ATBVMCPlugin : public VMCInterface {
|
class ATBVMCPlugin : public VMCInterface {
|
||||||
|
@ -46,6 +46,7 @@ public:
|
|||||||
virtual ~UnifiedDCVMCInterface() = default;
|
virtual ~UnifiedDCVMCInterface() = default;
|
||||||
|
|
||||||
virtual const QString & getPluginInfo() = 0;
|
virtual const QString & getPluginInfo() = 0;
|
||||||
|
virtual void setPluginInfo(QString const &info) = 0;
|
||||||
|
|
||||||
// mandantory ATBAPP plugin methods:
|
// mandantory ATBAPP plugin methods:
|
||||||
virtual PLUGIN_STATE getState() = 0;
|
virtual PLUGIN_STATE getState() = 0;
|
||||||
|
@ -27,6 +27,9 @@ public:
|
|||||||
explicit VMCInterface(QObject *parent = nullptr) : QObject(parent) {}
|
explicit VMCInterface(QObject *parent = nullptr) : QObject(parent) {}
|
||||||
virtual ~VMCInterface() = default;
|
virtual ~VMCInterface() = default;
|
||||||
|
|
||||||
|
virtual const QString & getPluginInfo() = 0;
|
||||||
|
virtual void setPluginInfo(QString const &info) = 0;
|
||||||
|
|
||||||
virtual PLUGIN_STATE initPlugin(QObject *eventReceiver, QObject *atbSystem,
|
virtual PLUGIN_STATE initPlugin(QObject *eventReceiver, QObject *atbSystem,
|
||||||
QObject *hmiConfig, QSettings const &settings) override {
|
QObject *hmiConfig, QSettings const &settings) override {
|
||||||
return initVMCPlugin(eventReceiver, atbSystem, hmiConfig, settings);
|
return initVMCPlugin(eventReceiver, atbSystem, hmiConfig, settings);
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#include "SendBuffer.h"
|
#include "SendBuffer.h"
|
||||||
#include "vmc.h"
|
#include "vmc.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "version.h"
|
|
||||||
|
|
||||||
SendBuffer::SendBuffer(COM_interface *cinterface, QObject *parent) :
|
SendBuffer::SendBuffer(COM_interface *cinterface, QObject *parent) :
|
||||||
QObject(parent)
|
QObject(parent)
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#include "vmc.h"
|
#include "vmc.h"
|
||||||
#include "version.h"
|
|
||||||
#include "ATBAPP.h"
|
#include "ATBAPP.h"
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include "version.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define VMC_RECEIVE_TIMEOUT 1000
|
#define VMC_RECEIVE_TIMEOUT 1000
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include "VendingData.h"
|
#include "VendingData.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "ATBAPP.h"
|
#include "ATBAPP.h"
|
||||||
#include "version.h"
|
|
||||||
|
|
||||||
VendingData::VendingData(QObject *parent) : QObject(parent)
|
VendingData::VendingData(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user