MagicSmoke  $VERSION$
MOSeatPlanGroup Class Reference

this class represents a seat group More...

#include <seatplanobj.h>

Inheritance diagram for MOSeatPlanGroup:
MOSeatPlanGroupAbstract

Public Member Functions

int capacityNum () const
 numeric capacity More...
 
QStringList categoryAbbreviations () const
 Abbreviations of categories in this group. More...
 
QList< int > categoryIds () const
 IDs of categories in this group. More...
 
QRect geometry () const
 geometry as a rect More...
 
bool isValid () const
 returns whether the object is valid (it comes from the DB and it has been understood by the parser) More...
 
int numBlockedSeats () const
 number of blocked seats (reserved, ordered, used tickets) More...
 
int numCancelledTickets () const
 number of cancelled tickets More...
 
int numOrderedTickets () const
 number of ordered (not yet used) tickets More...
 
int numReservedTickets () const
 number of reserved tickets More...
 
int numUsedTickets () const
 number of used tickets More...
 
- Public Member Functions inherited from MOSeatPlanGroupAbstract
 MOSeatPlanGroupAbstract ()
 default constructor: constructs an invalid instance of MOSeatPlanGroupAbstract More...
 
 MOSeatPlanGroupAbstract (const MOSeatPlanGroupAbstract &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOSeatPlanGroupAbstract (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOSeatPlanGroupAbstract ()
 destructor: deletes this copy of the object More...
 
virtual void addRow (Nullable< MOSeatPlanRow > a)
 
virtual Nullable< qint64 > angle () const
 GUI: rotation of the group rectangle. More...
 
virtual Nullable< QString > bgcolor () const
 GUI: background color. More...
 
virtual Nullable< QString > capacity () const
 amount of seats in this (part of the) group More...
 
virtual void clearRow ()
 
virtual Nullable< QString > fgcolor () const
 GUI: foreground color, the one the group name is rendered in. More...
 
virtual Nullable< QString > geo () const
 GUI: geometry information for the group. More...
 
virtual Nullable< QString > id () const
 the ID of this group, if multiple group elements with the same ID exist, they refer to different sections of the same group More...
 
virtual Nullable< QString > name () const
 human readable name of the group More...
 
virtual Nullable< bool > numbered () const
 defines whether the group contains numbered seats More...
 
MOSeatPlanGroupAbstractoperator= (const MOSeatPlanGroupAbstract &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual Nullable< QString > price () const
 The price categories in this group. More...
 
virtual QList< MOSeatPlanRowRow () const
 definition of rows in this group More...
 
virtual void setangle (Nullable< qint64 > s)
 GUI: rotation of the group rectangle. More...
 
virtual void setbgcolor (Nullable< QString > s)
 GUI: background color. More...
 
virtual void setcapacity (Nullable< QString > s)
 amount of seats in this (part of the) group More...
 
virtual void setfgcolor (Nullable< QString > s)
 GUI: foreground color, the one the group name is rendered in. More...
 
virtual void setgeo (Nullable< QString > s)
 GUI: geometry information for the group. More...
 
virtual void setid (Nullable< QString > s)
 the ID of this group, if multiple group elements with the same ID exist, they refer to different sections of the same group More...
 
virtual void setname (Nullable< QString > s)
 human readable name of the group More...
 
virtual void setnumbered (Nullable< bool > s)
 defines whether the group contains numbered seats More...
 
virtual void setprice (Nullable< QString > s)
 The price categories in this group. More...
 
virtual void setRow (QList< MOSeatPlanRow > s)
 definition of rows in this group More...
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="SeatPlanGroup")
 Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself. More...
 
void toXml (QDomDocument &, QDomElement &)
 Serializes the object into the given element. More...
 

Friends

class MOEventSaleInfo
 

Additional Inherited Members

- Static Public Member Functions inherited from MOSeatPlanGroupAbstract
static MOSeatPlanGroupAbstract fromString (const QString &)
 create MOSeatPlanGroupAbstract from XML formatted string (inverse of toString) More...
 
static MOSeatPlanGroupAbstract fromXml (const QDomElement &)
 create MOSeatPlanGroupAbstract from XML (inverse of toXml) More...
 
- Protected Attributes inherited from MOSeatPlanGroupAbstract
Nullable< qint64 > mp_angle
 
Nullable< QString > mp_bgcolor
 
Nullable< QString > mp_capacity
 
Nullable< QString > mp_fgcolor
 
Nullable< QString > mp_geo
 
Nullable< QString > mp_id
 
Nullable< QString > mp_name
 
Nullable< bool > mp_numbered
 
Nullable< QString > mp_price
 
QList< MOSeatPlanRowmp_Row
 

Detailed Description

this class represents a seat group

Member Function Documentation

int MOSeatPlanGroup::capacityNum ( ) const
inline

numeric capacity

QStringList MOSeatPlanGroup::categoryAbbreviations ( ) const
inline

Abbreviations of categories in this group.

QList<int> MOSeatPlanGroup::categoryIds ( ) const
inline

IDs of categories in this group.

QRect MOSeatPlanGroup::geometry ( ) const

geometry as a rect

bool MOSeatPlanGroup::isValid ( ) const
inline

returns whether the object is valid (it comes from the DB and it has been understood by the parser)

int MOSeatPlanGroup::numBlockedSeats ( ) const
inline

number of blocked seats (reserved, ordered, used tickets)

int MOSeatPlanGroup::numCancelledTickets ( ) const
inline

number of cancelled tickets

int MOSeatPlanGroup::numOrderedTickets ( ) const
inline

number of ordered (not yet used) tickets

int MOSeatPlanGroup::numReservedTickets ( ) const
inline

number of reserved tickets

int MOSeatPlanGroup::numUsedTickets ( ) const
inline

number of used tickets

Friends And Related Function Documentation

friend class MOEventSaleInfo
friend

The documentation for this class was generated from the following files: