3 #ifndef WOBGEN_MOSeatPlan
4 #define WOBGEN_MOSeatPlan
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
14 #include "MOSeatPlanGroup"
15 #include "MOSeatPlanVGroup"
16 #include "MOSeatPlanBackground"
17 #include "MOSeatPlanImage"
18 #include "MOSeatPlanDefPrice"
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)
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;}
66 virtual void setGroup(QList<MOSeatPlanGroup> s){mp_Group=s;}
68 virtual void addGroup(Nullable<MOSeatPlanGroup> a){mp_Group.append(a);}
70 virtual void setVGroup(QList<MOSeatPlanVGroup> s){mp_VGroup=s;}
72 virtual void addVGroup(Nullable<MOSeatPlanVGroup> a){mp_VGroup.append(a);}
74 virtual void setBackground(QList<MOSeatPlanBackground> s){mp_Background=s;}
76 virtual void addBackground(Nullable<MOSeatPlanBackground> a){mp_Background.append(a);}
78 virtual void setImage(QList<MOSeatPlanImage> s){mp_Image=s;}
80 virtual void addImage(Nullable<MOSeatPlanImage> a){mp_Image.append(a);}
82 virtual void setDefPrice(QList<MOSeatPlanDefPrice> s){mp_DefPrice=s;}
84 virtual void addDefPrice(Nullable<MOSeatPlanDefPrice> a){mp_DefPrice.append(a);}
91 QDomElement toXml(QDomDocument&doc,QString name=
"SeatPlan");
93 void toXml(QDomDocument&,QDomElement&);
104 static MOSeatPlan fromXml(
const QDomElement&);
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