MagicSmoke
$VERSION$
|
This class is used to parse seat plans on either side. More...
#include <seatplanobj2.h>
Public Member Functions | |
MOSeatPlan () | |
default constructor: constructs an invalid instance of MOSeatPlan More... | |
MOSeatPlan (const MOSeatPlan &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOSeatPlan (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOSeatPlan () |
destructor: deletes this copy of the object More... | |
virtual void | addBackground (Nullable< MOSeatPlanBackground > a) |
virtual void | addDefPrice (Nullable< MOSeatPlanDefPrice > a) |
virtual void | addGroup (Nullable< MOSeatPlanGroup > a) |
virtual void | addImage (Nullable< MOSeatPlanImage > a) |
virtual void | addVGroup (Nullable< MOSeatPlanVGroup > a) |
virtual QList < MOSeatPlanBackground > | Background () const |
virtual void | clearBackground () |
virtual void | clearDefPrice () |
virtual void | clearGroup () |
virtual void | clearImage () |
virtual void | clearVGroup () |
virtual QList< MOSeatPlanDefPrice > | DefPrice () const |
virtual Nullable< bool > | exclusive () const |
If true: only categories listed can be sold, if false: unlisted categories are not restricted. More... | |
void | f () |
virtual QList< MOSeatPlanGroup > | Group () const |
virtual QList< MOSeatPlanImage > | Image () const |
MOSeatPlan & | operator= (const MOSeatPlan &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual void | setBackground (QList< MOSeatPlanBackground > s) |
virtual void | setDefPrice (QList< MOSeatPlanDefPrice > s) |
virtual void | setexclusive (Nullable< bool > s) |
If true: only categories listed can be sold, if false: unlisted categories are not restricted. More... | |
virtual void | setGroup (QList< MOSeatPlanGroup > s) |
virtual void | setImage (QList< MOSeatPlanImage > s) |
virtual void | setversion (Nullable< qint64 > s) |
Version of the SeatPlan spec that was implemented. More... | |
virtual void | setVGroup (QList< MOSeatPlanVGroup > s) |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="SeatPlan") |
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... | |
virtual Nullable< qint64 > | version () const |
Version of the SeatPlan spec that was implemented. More... | |
virtual QList< MOSeatPlanVGroup > | VGroup () const |
Static Public Member Functions | |
static MOSeatPlan | fromString (const QString &) |
create MOSeatPlan from XML formatted string (inverse of toString) More... | |
static MOSeatPlan | fromXml (const QDomElement &) |
create MOSeatPlan from XML (inverse of toXml) More... | |
Protected Attributes | |
QList< MOSeatPlanBackground > | mp_Background |
QList< MOSeatPlanDefPrice > | mp_DefPrice |
Nullable< bool > | mp_exclusive |
QList< MOSeatPlanGroup > | mp_Group |
QList< MOSeatPlanImage > | mp_Image |
Nullable< qint64 > | mp_version |
QList< MOSeatPlanVGroup > | mp_VGroup |
This class is used to parse seat plans on either side.
It is not sent over the wire, since it is just a helper class.
|
inline |
default constructor: constructs an invalid instance of MOSeatPlan
Referenced by fromString(), and fromXml().
MOSeatPlan::MOSeatPlan | ( | const MOSeatPlan & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_Background, mp_DefPrice, mp_exclusive, mp_Group, mp_Image, mp_version, and mp_VGroup.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References addBackground(), addDefPrice(), addGroup(), addImage(), addVGroup(), setexclusive(), and setversion().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
Referenced by MOSeatPlan().
|
inlinevirtual |
Referenced by MOSeatPlan().
|
inlinevirtual |
Referenced by MOSeatPlan().
|
inlinevirtual |
Referenced by MOSeatPlan().
|
inlinevirtual |
Referenced by MOSeatPlan().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
If true: only categories listed can be sold, if false: unlisted categories are not restricted.
|
inline |
|
static |
create MOSeatPlan from XML formatted string (inverse of toString)
References MOSeatPlan().
Referenced by MOEventSaleInfo::seatplanAdjusted().
|
static |
create MOSeatPlan from XML (inverse of toXml)
References MOSeatPlan().
|
inlinevirtual |
|
inlinevirtual |
MOSeatPlan & MOSeatPlan::operator= | ( | const MOSeatPlan & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_Background, mp_DefPrice, mp_exclusive, mp_Group, mp_Image, mp_version, and mp_VGroup.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
If true: only categories listed can be sold, if false: unlisted categories are not restricted.
Referenced by MOSeatPlan().
|
inlinevirtual |
Referenced by MOEventSaleInfo::seatplanAdjusted().
|
inlinevirtual |
|
inlinevirtual |
Version of the SeatPlan spec that was implemented.
Referenced by MOSeatPlan().
|
inlinevirtual |
Referenced by MOEventSaleInfo::seatplanAdjusted().
QString MOSeatPlan::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOSeatPlan::toXml | ( | QDomDocument & | doc, |
QString | name = "SeatPlan" |
||
) |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself.
doc | the DOM document node for which to generate the element |
name | the name to give the generated element, per default "MOSeatPlan" is used |
Referenced by toString(), and toXml().
void MOSeatPlan::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_Background, mp_DefPrice, mp_exclusive, mp_Group, mp_Image, mp_version, mp_VGroup, and toXml().
|
inlinevirtual |
Version of the SeatPlan spec that was implemented.
|
inlinevirtual |
|
protected |
Referenced by MOSeatPlan(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlan(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlan(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlan(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlan(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlan(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlan(), operator=(), and toXml().