MagicSmoke  $VERSION$
srcMOTicketSaleInfo.h
Go to the documentation of this file.
1 //BEGIN OF AUTOMATICALLY GENERATED FILE
2 //DO NOT EDIT THIS FILE DIRECTLY, USE THE XML SOURCE!
3 #ifndef WOBGEN_MOTicketSaleInfo
4 #define WOBGEN_MOTicketSaleInfo
5 
6 
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
9 #endif
10 
11 #include "WObject"
12 #include <QCoreApplication>
13 
16 {
17  Q_GADGET
18  public:
19  Q_ENUMS(TicketState);
23  Reserved=785,
25  Ordered=786,
27  Used=771,
29  Cancelled=4,
31  Refund=4,
33  MaskBlock=256,
35  MaskPay=512,
37  MaskUsable=768,
39  MaskReturnable=16,
41  MaskChangeable=16
42  };
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)
63  protected:
64  Nullable<qint64> mp_eventid;
65  Nullable<qint64> mp_price;
66  Nullable<TicketState> mp_status;
67  Nullable<qint64> mp_pricecategoryid;
68  Nullable<QString> mp_tags;
69  Nullable<QString> mp_seat;
70  public:
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;}
78  virtual Nullable<qint64> pricecategoryid()const{return mp_pricecategoryid;}
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;}
90  virtual void setpricecategoryid(Nullable<qint64> s){mp_pricecategoryid=s;}
92  virtual void settags(Nullable<QString> s){mp_tags=s;}
94  virtual void setseat(Nullable<QString> s){mp_seat=s;}
95  public:
97  QString toString();
101  QDomElement toXml(QDomDocument&doc,QString name="TicketSaleInfo");
103  void toXml(QDomDocument&,QDomElement&);
104  public:
106  MOTicketSaleInfo():WObject(){}
110  MOTicketSaleInfo& operator=(const MOTicketSaleInfo&);
112  explicit MOTicketSaleInfo(const QDomElement&);
114  static MOTicketSaleInfo fromXml(const QDomElement&);
116  static MOTicketSaleInfo fromString(const QString&);
118  virtual ~MOTicketSaleInfo(){}
119 
120 };
122 Q_DECLARE_METATYPE(QList<MOTicketSaleInfo::TicketState>)
126 
127 //END OF AUTOMATICALLY GENERATED FILE
128 #endif
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