3 #ifndef WOBGEN_MOTicketUse
4 #define WOBGEN_MOTicketUse
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
39 static TicketUseStatus str2TicketUseStatus(QString,
bool*ok=0);
41 static QString TicketUseStatus2str(TicketUseStatus);
43 static TicketUseStatus locstr2TicketUseStatus(QString,
bool*ok=0);
45 static QString TicketUseStatus2locstr(TicketUseStatus);
47 Q_PROPERTY(Nullable<MOTicket> ticket READ ticket WRITE setticket)
51 Q_PROPERTY(Nullable<qint64> amounttickets READ amounttickets WRITE setamounttickets)
53 Q_PROPERTY(Nullable<qint64> amountused READ amountused WRITE setamountused)
55 Q_PROPERTY(Nullable<qint64> amountopen READ amountopen WRITE setamountopen)
57 Q_PROPERTY(Nullable<qint64> amountreserved READ amountreserved WRITE setamountreserved)
61 Nullable<qint64> mp_amounttickets;
62 Nullable<qint64> mp_amountused;
63 Nullable<qint64> mp_amountopen;
64 Nullable<qint64> mp_amountreserved;
67 virtual Nullable<
MOTicket> ticket()
const{
return mp_ticket;}
69 virtual Nullable<TicketUseStatus>
usestatus()
const{
return mp_usestatus;}
73 virtual Nullable<qint64>
amountused()
const{
return mp_amountused;}
75 virtual Nullable<qint64>
amountopen()
const{
return mp_amountopen;}
79 virtual void setticket(Nullable<MOTicket> s){mp_ticket=s;}
81 virtual void setusestatus(Nullable<TicketUseStatus> s){mp_usestatus=s;}
96 QDomElement toXml(QDomDocument&doc,QString name=
"TicketUse");
98 void toXml(QDomDocument&,QDomElement&);
TicketUseStatus
Definition: srcMOTicketUse.h:22
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOTicketUse.h:8
virtual void setamounttickets(Nullable< qint64 > s)
The amount of usable/used tickets in this event.
Definition: srcMOTicketUse.h:83
virtual Nullable< qint64 > amountopen() const
The amount of tickets for the event that have not been used yet.
Definition: srcMOTicketUse.h:75
virtual Nullable< qint64 > amountused() const
The amount of used tickets in the event (after the operation)
Definition: srcMOTicketUse.h:73
virtual void setusestatus(Nullable< TicketUseStatus > s)
The result of the UseTicket operation.
Definition: srcMOTicketUse.h:81
virtual void setamountused(Nullable< qint64 > s)
The amount of used tickets in the event (after the operation)
Definition: srcMOTicketUse.h:85
virtual Nullable< qint64 > amounttickets() const
The amount of usable/used tickets in this event.
Definition: srcMOTicketUse.h:71
virtual void setticket(Nullable< MOTicket > s)
The ticket, if found.
Definition: srcMOTicketUse.h:79
MOTicketUse()
default constructor: constructs an invalid instance of MOTicketUse
Definition: srcMOTicketUse.h:101
Q_DECLARE_METATYPE(QDomNode)
virtual void setamountreserved(Nullable< qint64 > s)
The amount of tickets for the event that could be used, but are only reserved until now...
Definition: srcMOTicketUse.h:89
virtual void setamountopen(Nullable< qint64 > s)
The amount of tickets for the event that have not been used yet.
Definition: srcMOTicketUse.h:87
Objects of this class are sent back as response to UseTicket.
Definition: srcMOTicketUse.h:16
virtual Nullable< TicketUseStatus > usestatus() const
The result of the UseTicket operation.
Definition: srcMOTicketUse.h:69
virtual ~MOTicketUse()
destructor: deletes this copy of the object
Definition: srcMOTicketUse.h:113
virtual Nullable< qint64 > amountreserved() const
The amount of tickets for the event that could be used, but are only reserved until now...
Definition: srcMOTicketUse.h:77