MagicSmoke  $VERSION$
srcMOEventPrice.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_MOEventPrice
4 #define WOBGEN_MOEventPrice
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 
14 #include "MOPriceCategory"
16 {
17  Q_GADGET
19  Q_PROPERTY(Nullable<qint64> eventid READ eventid WRITE seteventid)
21  Q_PROPERTY(Nullable<qint64> pricecategoryid READ pricecategoryid WRITE setpricecategoryid)
23  Q_PROPERTY(Nullable<MOPriceCategory> pricecategory READ pricecategory WRITE setpricecategory)
25  Q_PROPERTY(Nullable<qint64> maxavailable READ maxavailable WRITE setmaxavailable)
27  Q_PROPERTY(Nullable<qint64> price READ price WRITE setprice)
29  Q_PROPERTY(Nullable<qint64> prio READ prio WRITE setprio)
31  Q_PROPERTY(Nullable<QString> flags READ flags WRITE setflags)
33  Q_PROPERTY(Nullable<QString> tags READ tags WRITE settags)
35  Q_PROPERTY(Nullable<bool> canuse READ canuse WRITE setcanuse)
37  Q_PROPERTY(Nullable<qint64> amounttickets READ amounttickets WRITE setamounttickets)
39  Q_PROPERTY(Nullable<qint64> amountticketsblock READ amountticketsblock WRITE setamountticketsblock)
40  protected:
41  Nullable<qint64> mp_eventid;
42  Nullable<qint64> mp_pricecategoryid;
43  Nullable<MOPriceCategory> mp_pricecategory;
44  Nullable<qint64> mp_maxavailable;
45  Nullable<qint64> mp_price;
46  Nullable<qint64> mp_prio;
47  Nullable<QString> mp_flags;
48  Nullable<QString> mp_tags;
49  Nullable<bool> mp_canuse;
50  Nullable<qint64> mp_amounttickets;
51  Nullable<qint64> mp_amountticketsblock;
52  public:
54  virtual Nullable<qint64> eventid()const{return mp_eventid;}
56  virtual Nullable<qint64> pricecategoryid()const{return mp_pricecategoryid;}
58  virtual Nullable<MOPriceCategory> pricecategory()const{return mp_pricecategory;}
60  virtual Nullable<qint64> maxavailable()const{return mp_maxavailable;}
62  virtual Nullable<qint64> price()const{return mp_price;}
64  virtual Nullable<qint64> prio()const{return mp_prio;}
66  virtual Nullable<QString> flags()const{return mp_flags;}
68  virtual Nullable<QString> tags()const{return mp_tags;}
70  virtual Nullable<bool> canuse()const{return mp_canuse;}
72  virtual Nullable<qint64> amounttickets()const{return mp_amounttickets;}
74  virtual Nullable<qint64> amountticketsblock()const{return mp_amountticketsblock;}
76  virtual void seteventid(Nullable<qint64> s){mp_eventid=s;}
78  virtual void setpricecategoryid(Nullable<qint64> s){mp_pricecategoryid=s;}
80  virtual void setpricecategory(Nullable<MOPriceCategory> s){mp_pricecategory=s;}
82  virtual void setmaxavailable(Nullable<qint64> s){mp_maxavailable=s;}
84  virtual void setprice(Nullable<qint64> s){mp_price=s;}
86  virtual void setprio(Nullable<qint64> s){mp_prio=s;}
88  virtual void setflags(Nullable<QString> s){mp_flags=s;}
90  virtual void settags(Nullable<QString> s){mp_tags=s;}
92  virtual void setcanuse(Nullable<bool> s){mp_canuse=s;}
94  virtual void setamounttickets(Nullable<qint64> s){mp_amounttickets=s;}
96  virtual void setamountticketsblock(Nullable<qint64> s){mp_amountticketsblock=s;}
97  public:
99  QString toString();
103  QDomElement toXml(QDomDocument&doc,QString name="EventPrice");
105  void toXml(QDomDocument&,QDomElement&);
106  public:
108  MOEventPrice():WObject(){}
110  MOEventPrice(const MOEventPrice&);
112  MOEventPrice& operator=(const MOEventPrice&);
114  explicit MOEventPrice(const QDomElement&);
116  static MOEventPrice fromXml(const QDomElement&);
118  static MOEventPrice fromString(const QString&);
120  virtual ~MOEventPrice(){}
121 
122 };
126 
127 //END OF AUTOMATICALLY GENERATED FILE
128 #endif
Nullable< qint64 > mp_prio
Definition: srcMOEventPrice.h:46
Nullable< qint64 > mp_price
Definition: srcMOEventPrice.h:45
virtual Nullable< MOPriceCategory > pricecategory() const
Definition: srcMOEventPrice.h:58
virtual Nullable< QString > tags() const
Definition: srcMOEventPrice.h:68
Definition: srcMOEventPrice.h:15
virtual Nullable< qint64 > amounttickets() const
calculated property: contains the amount of tickets currently contained in this price, ignored if sent from client
Definition: srcMOEventPrice.h:72
Nullable< MOPriceCategory > mp_pricecategory
Definition: srcMOEventPrice.h:43
Nullable< qint64 > mp_amountticketsblock
Definition: srcMOEventPrice.h:51
virtual Nullable< qint64 > prio() const
Definition: srcMOEventPrice.h:64
virtual void setflags(Nullable< QString > s)
Definition: srcMOEventPrice.h:88
virtual void seteventid(Nullable< qint64 > s)
Definition: srcMOEventPrice.h:76
virtual void setpricecategory(Nullable< MOPriceCategory > s)
Definition: srcMOEventPrice.h:80
Nullable< qint64 > mp_pricecategoryid
Definition: srcMOEventPrice.h:42
virtual Nullable< qint64 > maxavailable() const
Definition: srcMOEventPrice.h:60
virtual ~MOEventPrice()
destructor: deletes this copy of the object
Definition: srcMOEventPrice.h:120
virtual Nullable< qint64 > amountticketsblock() const
calculated property: contains the amount of tickets currently contained in this price that are actual...
Definition: srcMOEventPrice.h:74
Nullable< qint64 > mp_amounttickets
Definition: srcMOEventPrice.h:50
virtual Nullable< QString > flags() const
Definition: srcMOEventPrice.h:66
virtual void setamounttickets(Nullable< qint64 > s)
calculated property: contains the amount of tickets currently contained in this price, ignored if sent from client
Definition: srcMOEventPrice.h:94
virtual Nullable< qint64 > eventid() const
Definition: srcMOEventPrice.h:54
virtual void setmaxavailable(Nullable< qint64 > s)
Definition: srcMOEventPrice.h:82
Nullable< qint64 > mp_eventid
Definition: srcMOEventPrice.h:41
MOEventPrice()
default constructor: constructs an invalid instance of MOEventPrice
Definition: srcMOEventPrice.h:108
Nullable< QString > mp_flags
Definition: srcMOEventPrice.h:47
virtual void setprice(Nullable< qint64 > s)
Definition: srcMOEventPrice.h:84
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOEventPrice.h:8
Q_DECLARE_METATYPE(QDomNode)
virtual void setprio(Nullable< qint64 > s)
Definition: srcMOEventPrice.h:86
virtual Nullable< qint64 > price() const
Definition: srcMOEventPrice.h:62
virtual Nullable< qint64 > pricecategoryid() const
Definition: srcMOEventPrice.h:56
virtual void settags(Nullable< QString > s)
Definition: srcMOEventPrice.h:90
Nullable< qint64 > mp_maxavailable
Definition: srcMOEventPrice.h:44
Nullable< bool > mp_canuse
Definition: srcMOEventPrice.h:49
virtual void setpricecategoryid(Nullable< qint64 > s)
Definition: srcMOEventPrice.h:78
virtual void setamountticketsblock(Nullable< qint64 > s)
calculated property: contains the amount of tickets currently contained in this price that are actual...
Definition: srcMOEventPrice.h:96
virtual Nullable< bool > canuse() const
Definition: srcMOEventPrice.h:70
virtual void setcanuse(Nullable< bool > s)
Definition: srcMOEventPrice.h:92
Nullable< QString > mp_tags
Definition: srcMOEventPrice.h:48