MagicSmoke  $VERSION$
srcMOSeatPlanRow.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_MOSeatPlanRow
4 #define WOBGEN_MOSeatPlanRow
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
19  Q_PROPERTY(Nullable<QString> id READ id WRITE setid)
21  Q_PROPERTY(Nullable<qint64> capacity READ capacity WRITE setcapacity)
23  Q_PROPERTY(Nullable<QString> geo READ geo WRITE setgeo)
25  Q_PROPERTY(Nullable<QString> bgcolor READ bgcolor WRITE setbgcolor)
27  Q_PROPERTY(Nullable<QString> fgcolor READ fgcolor WRITE setfgcolor)
29  Q_PROPERTY(Nullable<qint64> first READ first WRITE setfirst)
30  protected:
31  Nullable<QString> mp_id;
32  Nullable<qint64> mp_capacity;
33  Nullable<QString> mp_geo;
34  Nullable<QString> mp_bgcolor;
35  Nullable<QString> mp_fgcolor;
36  Nullable<qint64> mp_first;
37  public:
39  virtual Nullable<QString> id()const{return mp_id;}
41  virtual Nullable<qint64> capacity()const{return mp_capacity;}
43  virtual Nullable<QString> geo()const{return mp_geo;}
45  virtual Nullable<QString> bgcolor()const{return mp_bgcolor;}
47  virtual Nullable<QString> fgcolor()const{return mp_fgcolor;}
49  virtual Nullable<qint64> first()const{return mp_first;}
51  virtual void setid(Nullable<QString> s){mp_id=s;}
53  virtual void setcapacity(Nullable<qint64> s){mp_capacity=s;}
55  virtual void setgeo(Nullable<QString> s){mp_geo=s;}
57  virtual void setbgcolor(Nullable<QString> s){mp_bgcolor=s;}
59  virtual void setfgcolor(Nullable<QString> s){mp_fgcolor=s;}
61  virtual void setfirst(Nullable<qint64> s){mp_first=s;}
62  public:
64  QString toString();
68  QDomElement toXml(QDomDocument&doc,QString name="SeatPlanRow");
70  void toXml(QDomDocument&,QDomElement&);
71  public:
73  MOSeatPlanRow():WObject(){}
77  MOSeatPlanRow& operator=(const MOSeatPlanRow&);
79  explicit MOSeatPlanRow(const QDomElement&);
81  static MOSeatPlanRow fromXml(const QDomElement&);
83  static MOSeatPlanRow fromString(const QString&);
85  virtual ~MOSeatPlanRow(){}
86 
87 };
91 
92 //END OF AUTOMATICALLY GENERATED FILE
93 #endif
This is a helper for parsing seat plans: it defines a row of seats.
Definition: srcMOSeatPlanRow.h:15
virtual ~MOSeatPlanRow()
destructor: deletes this copy of the object
Definition: srcMOSeatPlanRow.h:85
virtual void setfgcolor(Nullable< QString > s)
GUI: foreground color, the one the seat number is rendered in.
Definition: srcMOSeatPlanRow.h:59
virtual Nullable< QString > geo() const
GUI: geometry information for the row.
Definition: srcMOSeatPlanRow.h:43
Nullable< qint64 > mp_capacity
Definition: srcMOSeatPlanRow.h:32
virtual void setcapacity(Nullable< qint64 > s)
amount of seats in this (part of the) row
Definition: srcMOSeatPlanRow.h:53
virtual Nullable< qint64 > first() const
number of the first seat in this row
Definition: srcMOSeatPlanRow.h:49
virtual Nullable< QString > id() const
the ID of this group, if multiple row elements with the same ID exist, they refer to different sectio...
Definition: srcMOSeatPlanRow.h:39
virtual Nullable< QString > fgcolor() const
GUI: foreground color, the one the seat number is rendered in.
Definition: srcMOSeatPlanRow.h:47
virtual void setid(Nullable< QString > s)
the ID of this group, if multiple row elements with the same ID exist, they refer to different sectio...
Definition: srcMOSeatPlanRow.h:51
Nullable< qint64 > mp_first
Definition: srcMOSeatPlanRow.h:36
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOSeatPlanRow.h:8
virtual void setfirst(Nullable< qint64 > s)
number of the first seat in this row
Definition: srcMOSeatPlanRow.h:61
Nullable< QString > mp_fgcolor
Definition: srcMOSeatPlanRow.h:35
Nullable< QString > mp_bgcolor
Definition: srcMOSeatPlanRow.h:34
virtual Nullable< QString > bgcolor() const
GUI: background color for seats.
Definition: srcMOSeatPlanRow.h:45
Q_DECLARE_METATYPE(QDomNode)
virtual void setbgcolor(Nullable< QString > s)
GUI: background color for seats.
Definition: srcMOSeatPlanRow.h:57
virtual Nullable< qint64 > capacity() const
amount of seats in this (part of the) row
Definition: srcMOSeatPlanRow.h:41
MOSeatPlanRow()
default constructor: constructs an invalid instance of MOSeatPlanRow
Definition: srcMOSeatPlanRow.h:73
Nullable< QString > mp_geo
Definition: srcMOSeatPlanRow.h:33
Nullable< QString > mp_id
Definition: srcMOSeatPlanRow.h:31
virtual void setgeo(Nullable< QString > s)
GUI: geometry information for the row.
Definition: srcMOSeatPlanRow.h:55