3 #ifndef WOBGEN_MOTicketSaleInfo
4 #define WOBGEN_MOTicketSaleInfo
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
44 static TicketState str2TicketState(QString,
bool*ok=0);
46 static QString TicketState2str(TicketState);
48 static TicketState locstr2TicketState(QString,
bool*ok=0);
50 static QString TicketState2locstr(TicketState);
52 Q_PROPERTY(Nullable<qint64> eventid READ eventid WRITE seteventid)
54 Q_PROPERTY(Nullable<qint64> price READ price WRITE setprice)
56 Q_PROPERTY(Nullable<
TicketState> status READ status WRITE setstatus)
58 Q_PROPERTY(Nullable<qint64> pricecategoryid READ pricecategoryid WRITE setpricecategoryid)
60 Q_PROPERTY(Nullable<QString> tags READ tags WRITE settags)
62 Q_PROPERTY(Nullable<QString> seat READ seat WRITE setseat)
64 Nullable<qint64> mp_eventid;
65 Nullable<qint64> mp_price;
67 Nullable<qint64> mp_pricecategoryid;
68 Nullable<QString> mp_tags;
69 Nullable<QString> mp_seat;
72 virtual Nullable<qint64> eventid()
const{
return mp_eventid;}
74 virtual Nullable<qint64>
price()
const{
return mp_price;}
76 virtual Nullable<TicketState>
status()
const{
return mp_status;}
80 virtual Nullable<QString>
tags()
const{
return mp_tags;}
82 virtual Nullable<QString>
seat()
const{
return mp_seat;}
84 virtual void seteventid(Nullable<qint64> s){mp_eventid=s;}
86 virtual void setprice(Nullable<qint64> s){mp_price=s;}
88 virtual void setstatus(Nullable<TicketState> s){mp_status=s;}
92 virtual void settags(Nullable<QString> s){mp_tags=s;}
94 virtual void setseat(Nullable<QString> s){mp_seat=s;}
101 QDomElement toXml(QDomDocument&doc,QString name=
"TicketSaleInfo");
103 void toXml(QDomDocument&,QDomElement&);
virtual Nullable< QString > seat() const
Definition: srcMOTicketSaleInfo.h:82
virtual void setprice(Nullable< qint64 > s)
Definition: srcMOTicketSaleInfo.h:86
virtual Nullable< TicketState > status() const
Definition: srcMOTicketSaleInfo.h:76
virtual void setseat(Nullable< QString > s)
Definition: srcMOTicketSaleInfo.h:94
virtual Nullable< QString > tags() const
Definition: srcMOTicketSaleInfo.h:80
virtual void settags(Nullable< QString > s)
Definition: srcMOTicketSaleInfo.h:92
TicketState
Definition: srcMOTicketSaleInfo.h:21
virtual Nullable< qint64 > price() const
Definition: srcMOTicketSaleInfo.h:74
virtual Nullable< qint64 > pricecategoryid() const
Definition: srcMOTicketSaleInfo.h:78
This class represents only the info from a ticket that is required for calculating seating informatio...
Definition: srcMOTicketSaleInfo.h:15
virtual void seteventid(Nullable< qint64 > s)
Definition: srcMOTicketSaleInfo.h:84
virtual void setpricecategoryid(Nullable< qint64 > s)
Definition: srcMOTicketSaleInfo.h:90
MOTicketSaleInfo()
default constructor: constructs an invalid instance of MOTicketSaleInfo
Definition: srcMOTicketSaleInfo.h:106
virtual ~MOTicketSaleInfo()
destructor: deletes this copy of the object
Definition: srcMOTicketSaleInfo.h:118
Q_DECLARE_METATYPE(QDomNode)
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOTicketSaleInfo.h:8
virtual void setstatus(Nullable< TicketState > s)
Definition: srcMOTicketSaleInfo.h:88