Interface: 1.2.1 (add additional TICKET_VARIANTs)
This commit is contained in:
parent
8fe705f49b
commit
e8b3bb1aa0
@ -6,6 +6,7 @@
|
|||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
|
#include <QtCore/QHash>
|
||||||
|
|
||||||
#include "ATBAPPplugin.h"
|
#include "ATBAPPplugin.h"
|
||||||
|
|
||||||
@ -212,10 +213,11 @@ signals:
|
|||||||
|
|
||||||
|
|
||||||
Q_DECLARE_INTERFACE(DeviceControllerInterface,
|
Q_DECLARE_INTERFACE(DeviceControllerInterface,
|
||||||
"eu.atb.ptu.plugin.DeviceControllerInterface/1.2.0")
|
"eu.atb.ptu.plugin.DeviceControllerInterface/1.2.1")
|
||||||
|
|
||||||
|
|
||||||
namespace nsDeviceControllerInterface {
|
namespace nsDeviceControllerInterface {
|
||||||
|
Q_NAMESPACE
|
||||||
|
|
||||||
enum class PLUGIN_STATE : quint8 {
|
enum class PLUGIN_STATE : quint8 {
|
||||||
NOT_INITIALIZED = 0,
|
NOT_INITIALIZED = 0,
|
||||||
@ -240,7 +242,19 @@ namespace nsDeviceControllerInterface {
|
|||||||
|
|
||||||
|
|
||||||
enum class TICKET_VARIANT : quint8 {
|
enum class TICKET_VARIANT : quint8 {
|
||||||
|
INVALID,
|
||||||
|
NO_TICKET,
|
||||||
PARKING_TICKET,
|
PARKING_TICKET,
|
||||||
|
PARKING_TICKET_CAR,
|
||||||
|
PARKING_TICKET_VAN,
|
||||||
|
PARKING_TICKET_CAMPER,
|
||||||
|
DAY_TICKET,
|
||||||
|
DAY_TICKET_ADULT,
|
||||||
|
DAY_TICKET_TEEN,
|
||||||
|
DAY_TICKET_CHILD,
|
||||||
|
DAY_TICKET_CAR,
|
||||||
|
DAY_TICKET_VAN,
|
||||||
|
DAY_TICKET_CAMPER,
|
||||||
RECEIPT,
|
RECEIPT,
|
||||||
ERROR_RECEIPT,
|
ERROR_RECEIPT,
|
||||||
START_RECEIPT, // e.g. Szeged Start
|
START_RECEIPT, // e.g. Szeged Start
|
||||||
@ -249,6 +263,12 @@ namespace nsDeviceControllerInterface {
|
|||||||
FOOD_STAMP,
|
FOOD_STAMP,
|
||||||
FREE_TICKET
|
FREE_TICKET
|
||||||
};
|
};
|
||||||
|
Q_ENUM_NS(TICKET_VARIANT)
|
||||||
|
|
||||||
|
inline uint qHash(const nsDeviceControllerInterface::TICKET_VARIANT &key, uint seed = 0)
|
||||||
|
{
|
||||||
|
return ::qHash(static_cast<quint8>(key), seed);
|
||||||
|
}
|
||||||
|
|
||||||
enum class COIN_PROCESSOR : quint8 {
|
enum class COIN_PROCESSOR : quint8 {
|
||||||
CHANGER,
|
CHANGER,
|
||||||
@ -270,4 +290,6 @@ namespace nsDeviceControllerInterface {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // DEVICECONTROLLERINTERFACE_H
|
#endif // DEVICECONTROLLERINTERFACE_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user