MagicSmoke  $VERSION$
MOEventSaleInfoAbstract Class Reference

This class transports all data necessary to calculate the free seats of an event. More...

#include <srcMOEventSaleInfoAbstract.h>

Inheritance diagram for MOEventSaleInfoAbstract:
MOEventSaleInfo

Public Member Functions

 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...
 

Static Public Member Functions

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

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 transports all data necessary to calculate the free seats of an event.

Constructor & Destructor Documentation

MOEventSaleInfoAbstract::MOEventSaleInfoAbstract ( )
inline

default constructor: constructs an invalid instance of MOEventSaleInfoAbstract

Referenced by fromString(), and fromXml().

MOEventSaleInfoAbstract::MOEventSaleInfoAbstract ( const MOEventSaleInfoAbstract o)

copy constructor: creates a (deep) copy of the object

References mp_canuse, mp_capacity, mp_eventid, mp_iscancelled, mp_price, mp_room, mp_seatplanid, mp_seatplaninfo, and mp_ticketsales.

MOEventSaleInfoAbstract::MOEventSaleInfoAbstract ( const QDomElement &  root)
explicit

special constructor: create from the XML representation, deserializing the object

References addprice(), addticketsales(), setcanuse(), setcapacity(), seteventid(), setiscancelled(), setroom(), setseatplanid(), and setseatplaninfo().

virtual MOEventSaleInfoAbstract::~MOEventSaleInfoAbstract ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual void MOEventSaleInfoAbstract::addprice ( Nullable< MOEventPrice a)
inlinevirtual

Referenced by MOEventSaleInfoAbstract().

virtual void MOEventSaleInfoAbstract::addticketsales ( Nullable< MOTicketSaleInfo a)
inlinevirtual

Referenced by MOEventSaleInfoAbstract().

virtual Nullable<bool> MOEventSaleInfoAbstract::canuse ( ) const
inlinevirtual
virtual Nullable<qint64> MOEventSaleInfoAbstract::capacity ( ) const
inlinevirtual
virtual void MOEventSaleInfoAbstract::clearprice ( )
inlinevirtual
virtual void MOEventSaleInfoAbstract::clearticketsales ( )
inlinevirtual
virtual Nullable<qint64> MOEventSaleInfoAbstract::eventid ( ) const
inlinevirtual
MOEventSaleInfoAbstract MOEventSaleInfoAbstract::fromString ( const QString &  txt)
static

create MOEventSaleInfoAbstract from XML formatted string (inverse of toString)

References MOEventSaleInfoAbstract().

MOEventSaleInfoAbstract MOEventSaleInfoAbstract::fromXml ( const QDomElement &  root)
static

create MOEventSaleInfoAbstract from XML (inverse of toXml)

References MOEventSaleInfoAbstract().

virtual Nullable<bool> MOEventSaleInfoAbstract::iscancelled ( ) const
inlinevirtual
MOEventSaleInfoAbstract & MOEventSaleInfoAbstract::operator= ( const MOEventSaleInfoAbstract o)

copy assignment: creates a (deep) copy of the object

References mp_canuse, mp_capacity, mp_eventid, mp_iscancelled, mp_price, mp_room, mp_seatplanid, mp_seatplaninfo, and mp_ticketsales.

virtual QList<MOEventPrice> MOEventSaleInfoAbstract::price ( ) const
inlinevirtual
virtual Nullable<QString> MOEventSaleInfoAbstract::room ( ) const
inlinevirtual
virtual Nullable<qint64> MOEventSaleInfoAbstract::seatplanid ( ) const
inlinevirtual
virtual Nullable<MOSeatPlanInfo> MOEventSaleInfoAbstract::seatplaninfo ( ) const
inlinevirtual
virtual void MOEventSaleInfoAbstract::setcanuse ( Nullable< bool >  s)
inlinevirtual

Referenced by MOEventSaleInfoAbstract().

virtual void MOEventSaleInfoAbstract::setcapacity ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOEventSaleInfoAbstract().

virtual void MOEventSaleInfoAbstract::seteventid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOEventSaleInfoAbstract().

virtual void MOEventSaleInfoAbstract::setiscancelled ( Nullable< bool >  s)
inlinevirtual

Referenced by MOEventSaleInfoAbstract().

virtual void MOEventSaleInfoAbstract::setprice ( QList< MOEventPrice s)
inlinevirtual
virtual void MOEventSaleInfoAbstract::setroom ( Nullable< QString >  s)
inlinevirtual

Referenced by MOEventSaleInfoAbstract().

virtual void MOEventSaleInfoAbstract::setseatplanid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOEventSaleInfoAbstract().

virtual void MOEventSaleInfoAbstract::setseatplaninfo ( Nullable< MOSeatPlanInfo s)
inlinevirtual

Referenced by MOEventSaleInfoAbstract().

virtual void MOEventSaleInfoAbstract::setticketsales ( QList< MOTicketSaleInfo s)
inlinevirtual
virtual QList<MOTicketSaleInfo> MOEventSaleInfoAbstract::ticketsales ( ) const
inlinevirtual
QString MOEventSaleInfoAbstract::toString ( )

Serializes the object to XML and returns the string representation of that XML.

References toXml().

QDomElement MOEventSaleInfoAbstract::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.

Parameters
docthe DOM document node for which to generate the element
namethe name to give the generated element, per default "MOEventSaleInfoAbstract" is used

Referenced by toString(), and toXml().

void MOEventSaleInfoAbstract::toXml ( QDomDocument &  doc,
QDomElement &  r 
)

Serializes the object into the given element.

References mp_canuse, mp_capacity, mp_eventid, mp_iscancelled, mp_price, mp_room, mp_seatplanid, mp_seatplaninfo, mp_ticketsales, and toXml().

Member Data Documentation

Nullable<bool> MOEventSaleInfoAbstract::mp_canuse
protected
Nullable<qint64> MOEventSaleInfoAbstract::mp_capacity
protected
Nullable<qint64> MOEventSaleInfoAbstract::mp_eventid
protected
Nullable<bool> MOEventSaleInfoAbstract::mp_iscancelled
protected
QList<MOEventPrice> MOEventSaleInfoAbstract::mp_price
protected
Nullable<QString> MOEventSaleInfoAbstract::mp_room
protected
Nullable<qint64> MOEventSaleInfoAbstract::mp_seatplanid
protected
Nullable<MOSeatPlanInfo> MOEventSaleInfoAbstract::mp_seatplaninfo
protected
QList<MOTicketSaleInfo> MOEventSaleInfoAbstract::mp_ticketsales
protected

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