MagicSmoke  $VERSION$
MOSeatPlanVGroup Class Reference

this class represents a seat group More...

#include <seatplanobj.h>

Inheritance diagram for MOSeatPlanVGroup:
MOSeatPlanVGroupAbstract

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...
 
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 MOSeatPlanVGroupAbstract
 MOSeatPlanVGroupAbstract ()
 default constructor: constructs an invalid instance of MOSeatPlanVGroupAbstract More...
 
 MOSeatPlanVGroupAbstract (const MOSeatPlanVGroupAbstract &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOSeatPlanVGroupAbstract (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOSeatPlanVGroupAbstract ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< QString > capacity () const
 amount of seats in this (part of the) group More...
 
virtual Nullable< QString > name () const
 human readable name of the group More...
 
MOSeatPlanVGroupAbstractoperator= (const MOSeatPlanVGroupAbstract &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual Nullable< QString > price () const
 definition of categories in this group More...
 
virtual void setcapacity (Nullable< QString > s)
 amount of seats in this (part of the) group More...
 
virtual void setname (Nullable< QString > s)
 human readable name of the group More...
 
virtual void setprice (Nullable< QString > s)
 definition of categories 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="SeatPlanVGroup")
 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 MOSeatPlanVGroupAbstract
static MOSeatPlanVGroupAbstract fromString (const QString &)
 create MOSeatPlanVGroupAbstract from XML formatted string (inverse of toString) More...
 
static MOSeatPlanVGroupAbstract fromXml (const QDomElement &)
 create MOSeatPlanVGroupAbstract from XML (inverse of toXml) More...
 
- Protected Attributes inherited from MOSeatPlanVGroupAbstract
Nullable< QString > mp_capacity
 
Nullable< QString > mp_name
 
Nullable< QString > mp_price
 

Detailed Description

this class represents a seat group

Member Function Documentation

int MOSeatPlanVGroup::capacityNum ( ) const
inline

numeric capacity

QStringList MOSeatPlanVGroup::categoryAbbreviations ( ) const
inline

Abbreviations of categories in this group.

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

IDs of categories in this group.

bool MOSeatPlanVGroup::isValid ( ) const
inline

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

References MOEventSaleInfoAbstract::capacity(), and MOEventSaleInfoAbstract::price().

int MOSeatPlanVGroup::numBlockedSeats ( ) const
inline

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

int MOSeatPlanVGroup::numCancelledTickets ( ) const
inline

number of cancelled tickets

int MOSeatPlanVGroup::numOrderedTickets ( ) const
inline

number of ordered (not yet used) tickets

int MOSeatPlanVGroup::numReservedTickets ( ) const
inline

number of reserved tickets

int MOSeatPlanVGroup::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: