diff --git a/src/ATBAPP/DeviceControllerInterface.h b/src/ATBAPP/DeviceControllerInterface.h index 8ad9581..e6d0439 100644 --- a/src/ATBAPP/DeviceControllerInterface.h +++ b/src/ATBAPP/DeviceControllerInterface.h @@ -6,6 +6,7 @@ #include #include #include +#include #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(key), seed); + } enum class COIN_PROCESSOR : quint8 { CHANGER, @@ -270,4 +290,6 @@ namespace nsDeviceControllerInterface { }; } + + #endif // DEVICECONTROLLERINTERFACE_H