MagicSmoke  $VERSION$
srcMOSeatPlan.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_MOSeatPlan
4 #define WOBGEN_MOSeatPlan
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 "MOSeatPlanGroup"
15 #include "MOSeatPlanVGroup"
16 #include "MOSeatPlanBackground"
17 #include "MOSeatPlanImage"
18 #include "MOSeatPlanDefPrice"
21 class WOBGEN_MAGICSMOKE__WOB_EXPORT MOSeatPlan:public WObject
22 {
23  Q_GADGET
25  Q_PROPERTY(Nullable<qint64> version READ version WRITE setversion)
27  Q_PROPERTY(Nullable<bool> exclusive READ exclusive WRITE setexclusive)
29  Q_PROPERTY(QList<MOSeatPlanGroup> Group READ Group WRITE setGroup)
31  Q_PROPERTY(QList<MOSeatPlanVGroup> VGroup READ VGroup WRITE setVGroup)
33  Q_PROPERTY(QList<MOSeatPlanBackground> Background READ Background WRITE setBackground)
35  Q_PROPERTY(QList<MOSeatPlanImage> Image READ Image WRITE setImage)
37  Q_PROPERTY(QList<MOSeatPlanDefPrice> DefPrice READ DefPrice WRITE setDefPrice)
38  protected:
39  Nullable<qint64> mp_version;
40  Nullable<bool> mp_exclusive;
41  QList<MOSeatPlanGroup> mp_Group;
42  QList<MOSeatPlanVGroup> mp_VGroup;
43  QList<MOSeatPlanBackground> mp_Background;
44  QList<MOSeatPlanImage> mp_Image;
45  QList<MOSeatPlanDefPrice> mp_DefPrice;
46  public:
48  virtual Nullable<qint64> version()const{return mp_version;}
50  virtual Nullable<bool> exclusive()const{return mp_exclusive;}
52  virtual QList<MOSeatPlanGroup> Group()const{return mp_Group;}
54  virtual QList<MOSeatPlanVGroup> VGroup()const{return mp_VGroup;}
56  virtual QList<MOSeatPlanBackground> Background()const{return mp_Background;}
58  virtual QList<MOSeatPlanImage> Image()const{return mp_Image;}
60  virtual QList<MOSeatPlanDefPrice> DefPrice()const{return mp_DefPrice;}
62  virtual void setversion(Nullable<qint64> s){mp_version=s;}
64  virtual void setexclusive(Nullable<bool> s){mp_exclusive=s;}
66  virtual void setGroup(QList<MOSeatPlanGroup> s){mp_Group=s;}
67  virtual void clearGroup(){mp_Group.clear();}
68  virtual void addGroup(Nullable<MOSeatPlanGroup> a){mp_Group.append(a);}
70  virtual void setVGroup(QList<MOSeatPlanVGroup> s){mp_VGroup=s;}
71  virtual void clearVGroup(){mp_VGroup.clear();}
72  virtual void addVGroup(Nullable<MOSeatPlanVGroup> a){mp_VGroup.append(a);}
74  virtual void setBackground(QList<MOSeatPlanBackground> s){mp_Background=s;}
75  virtual void clearBackground(){mp_Background.clear();}
76  virtual void addBackground(Nullable<MOSeatPlanBackground> a){mp_Background.append(a);}
78  virtual void setImage(QList<MOSeatPlanImage> s){mp_Image=s;}
79  virtual void clearImage(){mp_Image.clear();}
80  virtual void addImage(Nullable<MOSeatPlanImage> a){mp_Image.append(a);}
82  virtual void setDefPrice(QList<MOSeatPlanDefPrice> s){mp_DefPrice=s;}
83  virtual void clearDefPrice(){mp_DefPrice.clear();}
84  virtual void addDefPrice(Nullable<MOSeatPlanDefPrice> a){mp_DefPrice.append(a);}
85  public:
87  QString toString();
91  QDomElement toXml(QDomDocument&doc,QString name="SeatPlan");
93  void toXml(QDomDocument&,QDomElement&);
94  public:
96  MOSeatPlan():WObject(){}
98  MOSeatPlan(const MOSeatPlan&);
100  MOSeatPlan& operator=(const MOSeatPlan&);
102  explicit MOSeatPlan(const QDomElement&);
104  static MOSeatPlan fromXml(const QDomElement&);
106  static MOSeatPlan fromString(const QString&);
108  virtual ~MOSeatPlan(){}
109 
110 };
114 
115 //END OF AUTOMATICALLY GENERATED FILE
116 #endif
virtual void clearGroup()
Definition: srcMOSeatPlan.h:67
virtual void addDefPrice(Nullable< MOSeatPlanDefPrice > a)
Definition: srcMOSeatPlan.h:84
virtual void setGroup(QList< MOSeatPlanGroup > s)
Definition: srcMOSeatPlan.h:66
QList< MOSeatPlanGroup > mp_Group
Definition: srcMOSeatPlan.h:41
virtual QList< MOSeatPlanDefPrice > DefPrice() const
Definition: srcMOSeatPlan.h:60
virtual void setversion(Nullable< qint64 > s)
Version of the SeatPlan spec that was implemented.
Definition: srcMOSeatPlan.h:62
Nullable< qint64 > mp_version
Definition: srcMOSeatPlan.h:39
virtual void setDefPrice(QList< MOSeatPlanDefPrice > s)
Definition: srcMOSeatPlan.h:82
virtual ~MOSeatPlan()
destructor: deletes this copy of the object
Definition: srcMOSeatPlan.h:108
virtual void clearDefPrice()
Definition: srcMOSeatPlan.h:83
virtual void setexclusive(Nullable< bool > s)
If true: only categories listed can be sold, if false: unlisted categories are not restricted...
Definition: srcMOSeatPlan.h:64
virtual Nullable< bool > exclusive() const
If true: only categories listed can be sold, if false: unlisted categories are not restricted...
Definition: srcMOSeatPlan.h:50
MOSeatPlan()
default constructor: constructs an invalid instance of MOSeatPlan
Definition: srcMOSeatPlan.h:96
virtual void setVGroup(QList< MOSeatPlanVGroup > s)
Definition: srcMOSeatPlan.h:70
virtual void addVGroup(Nullable< MOSeatPlanVGroup > a)
Definition: srcMOSeatPlan.h:72
Nullable< bool > mp_exclusive
Definition: srcMOSeatPlan.h:40
virtual void addGroup(Nullable< MOSeatPlanGroup > a)
Definition: srcMOSeatPlan.h:68
virtual QList< MOSeatPlanVGroup > VGroup() const
Definition: srcMOSeatPlan.h:54
virtual void clearImage()
Definition: srcMOSeatPlan.h:79
virtual QList< MOSeatPlanGroup > Group() const
Definition: srcMOSeatPlan.h:52
virtual void clearVGroup()
Definition: srcMOSeatPlan.h:71
virtual Nullable< qint64 > version() const
Version of the SeatPlan spec that was implemented.
Definition: srcMOSeatPlan.h:48
QList< MOSeatPlanVGroup > mp_VGroup
Definition: srcMOSeatPlan.h:42
This class is used to parse seat plans on either side.
Definition: seatplanobj2.h:18
QList< MOSeatPlanBackground > mp_Background
Definition: srcMOSeatPlan.h:43
virtual QList< MOSeatPlanBackground > Background() const
Definition: srcMOSeatPlan.h:56
virtual void setImage(QList< MOSeatPlanImage > s)
Definition: srcMOSeatPlan.h:78
Q_DECLARE_METATYPE(QDomNode)
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOSeatPlan.h:8
virtual void addBackground(Nullable< MOSeatPlanBackground > a)
Definition: srcMOSeatPlan.h:76
virtual void addImage(Nullable< MOSeatPlanImage > a)
Definition: srcMOSeatPlan.h:80
QList< MOSeatPlanImage > mp_Image
Definition: srcMOSeatPlan.h:44
virtual void clearBackground()
Definition: srcMOSeatPlan.h:75
virtual QList< MOSeatPlanImage > Image() const
Definition: srcMOSeatPlan.h:58
QList< MOSeatPlanDefPrice > mp_DefPrice
Definition: srcMOSeatPlan.h:45
virtual void setBackground(QList< MOSeatPlanBackground > s)
Definition: srcMOSeatPlan.h:74