MagicSmoke  $VERSION$
MOEventSaleInfo Class Reference

this class represents a seat group More...

#include <eventsaleinfo.h>

Inheritance diagram for MOEventSaleInfo:
MOEventSaleInfoAbstract

Public Member Functions

bool isValid () const
 returns whether the object is valid (it comes from the DB and it has been understood by the parser) More...
 
MOSeatPlan seatplan () const
 returns the parsed seat plan without sale info worked in More...
 
MOSeatPlan seatplanAdjusted () const
 returns the parsed seat plan with all the ticket info merged in More...
 
- Public Member Functions inherited from MOEventSaleInfoAbstract
 MOEventSaleInfoAbstract ()
 default constructor: constructs an invalid instance of MOEventSaleInfoAbstract More...
 
 MOEventSaleInfoAbstract (const MOEventSaleInfoAbstract &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOEventSaleInfoAbstract (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOEventSaleInfoAbstract ()
 destructor: deletes this copy of the object More...
 
virtual void addprice (Nullable< MOEventPrice > a)
 
virtual void addticketsales (Nullable< MOTicketSaleInfo > a)
 
virtual Nullable< bool > canuse () const
 
virtual Nullable< qint64 > capacity () const
 
virtual void clearprice ()
 
virtual void clearticketsales ()
 
virtual Nullable< qint64 > eventid () const
 
virtual Nullable< bool > iscancelled () const
 
MOEventSaleInfoAbstractoperator= (const MOEventSaleInfoAbstract &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual QList< MOEventPriceprice () const
 
virtual Nullable< QString > room () const
 
virtual Nullable< qint64 > seatplanid () const
 
virtual Nullable< MOSeatPlanInfoseatplaninfo () const
 
virtual void setcanuse (Nullable< bool > s)
 
virtual void setcapacity (Nullable< qint64 > s)
 
virtual void seteventid (Nullable< qint64 > s)
 
virtual void setiscancelled (Nullable< bool > s)
 
virtual void setprice (QList< MOEventPrice > s)
 
virtual void setroom (Nullable< QString > s)
 
virtual void setseatplanid (Nullable< qint64 > s)
 
virtual void setseatplaninfo (Nullable< MOSeatPlanInfo > s)
 
virtual void setticketsales (QList< MOTicketSaleInfo > s)
 
virtual QList< MOTicketSaleInfoticketsales () const
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="EventSaleInfo")
 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...
 

Additional Inherited Members

- Static Public Member Functions inherited from MOEventSaleInfoAbstract
static MOEventSaleInfoAbstract fromString (const QString &)
 create MOEventSaleInfoAbstract from XML formatted string (inverse of toString) More...
 
static MOEventSaleInfoAbstract fromXml (const QDomElement &)
 create MOEventSaleInfoAbstract from XML (inverse of toXml) More...
 
- Protected Attributes inherited from MOEventSaleInfoAbstract
Nullable< bool > mp_canuse
 
Nullable< qint64 > mp_capacity
 
Nullable< qint64 > mp_eventid
 
Nullable< bool > mp_iscancelled
 
QList< MOEventPricemp_price
 
Nullable< QString > mp_room
 
Nullable< qint64 > mp_seatplanid
 
Nullable< MOSeatPlanInfomp_seatplaninfo
 
QList< MOTicketSaleInfomp_ticketsales
 

Detailed Description

this class represents a seat group

Member Function Documentation

bool MOEventSaleInfo::isValid ( ) const
inline

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

References MOEventSaleInfoAbstract::eventid().

MOSeatPlan MOEventSaleInfo::seatplan ( ) const

returns the parsed seat plan without sale info worked in

MOSeatPlan MOEventSaleInfo::seatplanAdjusted ( ) const

returns the parsed seat plan with all the ticket info merged in

References MOSeatPlan::fromString(), MOEventSaleInfoAbstract::seatplaninfo(), MOSeatPlan::setGroup(), and MOSeatPlan::setVGroup().


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