Update Interface: Add ticket variants

This commit is contained in:
Siegfried Siegert 2023-06-26 19:45:12 +02:00
parent 7d722e2b2c
commit e367538fc4
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -12,6 +12,7 @@ namespace nsDeviceControllerInterface {
enum class PLUGIN_STATE : quint8; enum class PLUGIN_STATE : quint8;
enum class RESULT_STATE : quint8; enum class RESULT_STATE : quint8;
enum class CASH_STATE : quint8; enum class CASH_STATE : quint8;
enum class TICKET_VARIANT : quint8;
} }
@ -59,6 +60,8 @@ public:
// TASKS: printing ------------------------------------------------------------ // TASKS: printing ------------------------------------------------------------
virtual void requestPrintTicket(const QHash<QString, QVariant> & printingData) = 0; virtual void requestPrintTicket(const QHash<QString, QVariant> & printingData) = 0;
virtual void requestPrintTicket(nsDeviceControllerInterface::TICKET_VARIANT ticketVariant, const QHash<QString, QVariant> & printingData) = 0;
virtual void requestPrintReceipt(const QHash<QString, QVariant> & printingData) = 0;
// mandantory ATBAPP plugin methods: // mandantory ATBAPP plugin methods:
@ -168,6 +171,16 @@ namespace nsDeviceControllerInterface {
OVERPAYED, OVERPAYED,
/* t.b.d. */ /* t.b.d. */
}; };
enum class TICKET_VARIANT : quint8 {
PARKING_TICKET,
RECEIPT,
ERROR_RECEIPT,
START_RECEIPT, // e.g. Szeged Start
STOP_RECEIPT, // e.g. Szeged Stop
};
} }
#endif // DEVICECONTROLLERINTERFACE_H #endif // DEVICECONTROLLERINTERFACE_H