3 #ifndef WOBGEN_MOCartTicket
4 #define WOBGEN_MOCartTicket
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
14 #include "MOEventPrice"
15 #include "MOEventPrice"
37 static TicketValidationState str2TicketValidationState(QString,
bool*ok=0);
39 static QString TicketValidationState2str(TicketValidationState);
41 static TicketValidationState locstr2TicketValidationState(QString,
bool*ok=0);
43 static QString TicketValidationState2locstr(TicketValidationState);
45 Q_PROPERTY(Nullable<qint64> cartlineid READ cartlineid WRITE setcartlineid)
47 Q_PROPERTY(Nullable<qint64> eventid READ eventid WRITE seteventid)
49 Q_PROPERTY(Nullable<qint64> amount READ amount WRITE setamount)
51 Q_PROPERTY(Nullable<qint64> pricecategoryid READ pricecategoryid WRITE setpricecategoryid)
53 Q_PROPERTY(Nullable<qint64> origpricecategoryid READ origpricecategoryid WRITE setorigpricecategoryid)
55 Q_PROPERTY(Nullable<qint64> price READ price WRITE setprice)
59 Q_PROPERTY(Nullable<QString> statustext READ statustext WRITE setstatustext)
61 Q_PROPERTY(Nullable<qint64> maxamount READ maxamount WRITE setmaxamount)
63 Q_PROPERTY(Nullable<QString> cartid READ cartid WRITE setcartid)
65 Q_PROPERTY(Nullable<
MOEventPrice> eventprice READ eventprice WRITE seteventprice)
67 Q_PROPERTY(Nullable<
MOEventPrice> origeventprice READ origeventprice WRITE setorigeventprice)
69 Q_PROPERTY(Nullable<
MOEvent> event READ event WRITE setevent)
71 Nullable<qint64> mp_cartlineid;
72 Nullable<qint64> mp_eventid;
73 Nullable<qint64> mp_amount;
74 Nullable<qint64> mp_pricecategoryid;
75 Nullable<qint64> mp_origpricecategoryid;
76 Nullable<qint64> mp_price;
78 Nullable<QString> mp_statustext;
79 Nullable<qint64> mp_maxamount;
80 Nullable<QString> mp_cartid;
86 virtual Nullable<qint64> cartlineid()
const{
return mp_cartlineid;}
88 virtual Nullable<qint64>
eventid()
const{
return mp_eventid;}
90 virtual Nullable<qint64>
amount()
const{
return mp_amount;}
96 virtual Nullable<qint64>
price()
const{
return mp_price;}
98 virtual Nullable<TicketValidationState>
status()
const{
return mp_status;}
100 virtual Nullable<QString>
statustext()
const{
return mp_statustext;}
102 virtual Nullable<qint64>
maxamount()
const{
return mp_maxamount;}
104 virtual Nullable<QString>
cartid()
const{
return mp_cartid;}
106 virtual Nullable<MOEventPrice>
eventprice()
const{
return mp_eventprice;}
110 virtual Nullable<MOEvent>
event()
const{
return mp_event;}
116 virtual void setamount(Nullable<qint64> s){mp_amount=s;}
122 virtual void setprice(Nullable<qint64> s){mp_price=s;}
124 virtual void setstatus(Nullable<TicketValidationState> s){mp_status=s;}
130 virtual void setcartid(Nullable<QString> s){mp_cartid=s;}
136 virtual void setevent(Nullable<MOEvent> s){mp_event=s;}
143 QDomElement toXml(QDomDocument&doc,QString name=
"CartTicket");
145 void toXml(QDomDocument&,QDomElement&);
virtual Nullable< qint64 > pricecategoryid() const
Price category to be used for this ticket.
Definition: srcMOCartTicket.h:92
virtual void seteventprice(Nullable< MOEventPrice > s)
Used in the Web UI only to provide access to price properties.
Definition: srcMOCartTicket.h:132
virtual void setevent(Nullable< MOEvent > s)
Used in the Web UI only to provide access to event properties.
Definition: srcMOCartTicket.h:136
virtual void setcartid(Nullable< QString > s)
The cartID as used by the web user interface, this property must not be interpreted while the server ...
Definition: srcMOCartTicket.h:130
Encapsulates tickets for a specific event in a specific price category as they are stored in the cart...
Definition: srcMOCartTicket.h:18
encapsulation of an event, this class wraps the auto-generated event class to provide some convenienc...
Definition: event.h:25
virtual void setpricecategoryid(Nullable< qint64 > s)
Price category to be used for this ticket.
Definition: srcMOCartTicket.h:118
virtual Nullable< MOEvent > event() const
Used in the Web UI only to provide access to event properties.
Definition: srcMOCartTicket.h:110
virtual Nullable< qint64 > origpricecategoryid() const
Price category originally assigned before the coupon changed it.
Definition: srcMOCartTicket.h:94
virtual void setorigpricecategoryid(Nullable< qint64 > s)
Price category originally assigned before the coupon changed it.
Definition: srcMOCartTicket.h:120
Definition: srcMOEventPrice.h:15
virtual Nullable< MOEventPrice > origeventprice() const
Used in the Web UI only to provide access to price properties.
Definition: srcMOCartTicket.h:108
virtual void setstatus(Nullable< TicketValidationState > s)
Definition: srcMOCartTicket.h:124
virtual Nullable< qint64 > amount() const
Definition: srcMOCartTicket.h:90
virtual void setorigeventprice(Nullable< MOEventPrice > s)
Used in the Web UI only to provide access to price properties.
Definition: srcMOCartTicket.h:134
virtual void setamount(Nullable< qint64 > s)
Definition: srcMOCartTicket.h:116
virtual void setmaxamount(Nullable< qint64 > s)
Definition: srcMOCartTicket.h:128
virtual Nullable< QString > statustext() const
Definition: srcMOCartTicket.h:100
virtual Nullable< TicketValidationState > status() const
Definition: srcMOCartTicket.h:98
TicketValidationState
Used when checking orders: tells us whether a ticket can be sold or not.
Definition: srcMOCartTicket.h:24
virtual void setstatustext(Nullable< QString > s)
Definition: srcMOCartTicket.h:126
virtual Nullable< qint64 > price() const
Definition: srcMOCartTicket.h:96
virtual Nullable< qint64 > eventid() const
Definition: srcMOCartTicket.h:88
virtual void setcartlineid(Nullable< qint64 > s)
optional property that can be used by the calling process to distinguish lines in the cart...
Definition: srcMOCartTicket.h:112
virtual Nullable< QString > cartid() const
The cartID as used by the web user interface, this property must not be interpreted while the server ...
Definition: srcMOCartTicket.h:104
virtual ~MOCartTicket()
destructor: deletes this copy of the object
Definition: srcMOCartTicket.h:160
Q_DECLARE_METATYPE(QDomNode)
virtual void setprice(Nullable< qint64 > s)
Definition: srcMOCartTicket.h:122
virtual Nullable< MOEventPrice > eventprice() const
Used in the Web UI only to provide access to price properties.
Definition: srcMOCartTicket.h:106
virtual void seteventid(Nullable< qint64 > s)
Definition: srcMOCartTicket.h:114
virtual Nullable< qint64 > maxamount() const
Definition: srcMOCartTicket.h:102
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOCartTicket.h:8
MOCartTicket()
default constructor: constructs an invalid instance of MOCartTicket
Definition: srcMOCartTicket.h:148