Interface: 1.2.1 (add additional TICKET_VARIANTs)
This commit is contained in:
		@@ -6,6 +6,7 @@
 | 
			
		||||
#include <QSettings>
 | 
			
		||||
#include <QString>
 | 
			
		||||
#include <QJsonObject>
 | 
			
		||||
#include <QtCore/QHash>
 | 
			
		||||
 | 
			
		||||
#include "ATBAPPplugin.h"
 | 
			
		||||
 | 
			
		||||
@@ -212,10 +213,11 @@ signals:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Q_DECLARE_INTERFACE(DeviceControllerInterface,
 | 
			
		||||
                    "eu.atb.ptu.plugin.DeviceControllerInterface/1.2.0")
 | 
			
		||||
                    "eu.atb.ptu.plugin.DeviceControllerInterface/1.2.1")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
namespace nsDeviceControllerInterface {
 | 
			
		||||
    Q_NAMESPACE
 | 
			
		||||
 | 
			
		||||
    enum class PLUGIN_STATE : quint8 {
 | 
			
		||||
        NOT_INITIALIZED = 0,
 | 
			
		||||
@@ -240,7 +242,19 @@ namespace nsDeviceControllerInterface {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    enum class TICKET_VARIANT : quint8 {
 | 
			
		||||
        INVALID,
 | 
			
		||||
        NO_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,
 | 
			
		||||
        ERROR_RECEIPT,
 | 
			
		||||
        START_RECEIPT,   // e.g. Szeged Start
 | 
			
		||||
@@ -249,6 +263,12 @@ namespace nsDeviceControllerInterface {
 | 
			
		||||
        FOOD_STAMP,
 | 
			
		||||
        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 {
 | 
			
		||||
        CHANGER,
 | 
			
		||||
@@ -270,4 +290,6 @@ namespace nsDeviceControllerInterface {
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#endif // DEVICECONTROLLERINTERFACE_H
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user