13 #ifndef MAGICSMOKE_MOSEATPLANOBJ_H
14 #define MAGICSMOKE_MOSEATPLANOBJ_H
16 #include "MOSeatPlanDefPriceAbstract"
17 #include "MOSeatPlanGroupAbstract"
18 #include "MOSeatPlanVGroupAbstract"
23 #ifndef MSIFACE_EXPORT
24 #define MSIFACE_EXPORT Q_DECL_IMPORT
34 Q_PROPERTY(
bool isValid READ isValid)
50 Q_PROPERTY(
bool isValid READ isValid)
51 Q_PROPERTY(
int capacityNum READ capacityNum)
52 Q_PROPERTY(QRect geometry READ geometry)
53 Q_PROPERTY(QList<int> categoryIds READ categoryIds)
54 Q_PROPERTY(QStringList categoryAbbreviations READ categoryAbbreviations)
55 Q_PROPERTY(
int numReservedTickets READ numReservedTickets)
56 Q_PROPERTY(
int numOrderedTickets READ numOrderedTickets)
57 Q_PROPERTY(
int numUsedTickets READ numUsedTickets)
58 Q_PROPERTY(
int numCancelledTickets READ numCancelledTickets)
59 Q_PROPERTY(
int numBlockedSeats READ numBlockedSeats)
62 bool isValid()
const{
return !capacity().isNull() && !price().isNull() && !id().isNull();}
68 QRect geometry()
const;
95 QList<int> mcategoryids;
96 QStringList mcategoryabbr;
97 int mreserve=0,mordered=0,mused=0,mcancelled=0,mblocked=0,mcapacity=0;
112 Q_PROPERTY(
int capacityNum READ capacityNum)
113 Q_PROPERTY(QList<int> categoryIds READ categoryIds)
114 Q_PROPERTY(QStringList categoryAbbreviations READ categoryAbbreviations)
115 Q_PROPERTY(
int numReservedTickets READ numReservedTickets)
116 Q_PROPERTY(
int numOrderedTickets READ numOrderedTickets)
117 Q_PROPERTY(
int numUsedTickets READ numUsedTickets)
118 Q_PROPERTY(
int numCancelledTickets READ numCancelledTickets)
119 Q_PROPERTY(
int numBlockedSeats READ numBlockedSeats);
152 QList<int> mcategoryids;
153 QStringList mcategoryabbr;
154 int mreserve=0,mordered=0,mused=0,mcancelled=0,mblocked=0,mcapacity=0;
int numBlockedSeats() const
number of blocked seats (reserved, ordered, used tickets)
Definition: seatplanobj.h:146
int numBlockedSeats() const
number of blocked seats (reserved, ordered, used tickets)
Definition: seatplanobj.h:89
virtual QList< MOEventPrice > price() const
Definition: srcMOEventSaleInfoAbstract.h:59
Default price categories for a seat plan.
Definition: srcMOSeatPlanDefPriceAbstract.h:15
virtual Nullable< QString > capacity() const
amount of seats in this (part of the) group
Definition: srcMOSeatPlanDefPriceAbstract.h:30
bool isValid() const
returns whether the object is valid (it comes from the DB and it has been understood by the parser) ...
Definition: seatplanobj.h:62
bool isValid() const
returns whether the object is valid (it comes from the DB and it has been understood by the parser) ...
Definition: seatplanobj.h:122
int numReservedTickets() const
number of reserved tickets
Definition: seatplanobj.h:77
int numCancelledTickets() const
number of cancelled tickets
Definition: seatplanobj.h:86
int numCancelledTickets() const
number of cancelled tickets
Definition: seatplanobj.h:143
int numReservedTickets() const
number of reserved tickets
Definition: seatplanobj.h:134
int numUsedTickets() const
number of used tickets
Definition: seatplanobj.h:140
#define MSIFACE_EXPORT
Definition: seatplanobj.h:24
QList< int > categoryIds() const
IDs of categories in this group.
Definition: seatplanobj.h:128
this class represents a seat group
Definition: eventsaleinfo.h:27
virtual Nullable< QString > cost() const
default cost definition
Definition: srcMOSeatPlanDefPriceAbstract.h:34
this class represents a seat group
Definition: seatplanobj.h:107
int numUsedTickets() const
number of used tickets
Definition: seatplanobj.h:83
this class represents a seat group
Definition: seatplanobj.h:46
QList< int > categoryIds() const
IDs of categories in this group.
Definition: seatplanobj.h:71
int numOrderedTickets() const
number of ordered (not yet used) tickets
Definition: seatplanobj.h:80
int capacityNum() const
numeric capacity
Definition: seatplanobj.h:65
bool isValid() const
returns whether the object is valid (it comes from the DB and it has been understood by the parser) ...
Definition: seatplanobj.h:37
QStringList categoryAbbreviations() const
Abbreviations of categories in this group.
Definition: seatplanobj.h:131
bool isValid() const
returns whether the object is valid (it comes from the DB and it has been understood by the parser) ...
Definition: eventsaleinfo.h:35
virtual Nullable< QString > price() const
definition of categories in this group
Definition: srcMOSeatPlanDefPriceAbstract.h:32
Q_DECLARE_METATYPE(QDomNode)
int numOrderedTickets() const
number of ordered (not yet used) tickets
Definition: seatplanobj.h:137
int capacityNum() const
numeric capacity
Definition: seatplanobj.h:125
QStringList categoryAbbreviations() const
Abbreviations of categories in this group.
Definition: seatplanobj.h:74
This is a helper for parsing seat plans: it defines a group of rows of seats.
Definition: srcMOSeatPlanGroupAbstract.h:16
this class represents a default price category definition
Definition: seatplanobj.h:30
This is a helper for parsing seat plans: it defines a virtual group of categories.
Definition: srcMOSeatPlanVGroupAbstract.h:15
virtual Nullable< qint64 > capacity() const
Definition: srcMOEventSaleInfoAbstract.h:55