|
MagicSmoke
$VERSION$
|
This class represents only the info from a ticket that is required for calculating seating information. More...
#include <srcMOTicketSaleInfo.h>
Public Types | |
| enum | TicketState { Reserved =785, Ordered =786, Used =771, Cancelled =4, Refund =4, MaskBlock =256, MaskPay =512, MaskUsable =768, MaskReturnable =16, MaskChangeable =16 } |
Public Member Functions | |
| MOTicketSaleInfo () | |
| default constructor: constructs an invalid instance of MOTicketSaleInfo More... | |
| MOTicketSaleInfo (const MOTicketSaleInfo &) | |
| copy constructor: creates a (deep) copy of the object More... | |
| MOTicketSaleInfo (const QDomElement &) | |
| special constructor: create from the XML representation, deserializing the object More... | |
| virtual | ~MOTicketSaleInfo () |
| destructor: deletes this copy of the object More... | |
| virtual Nullable< qint64 > | eventid () const |
| MOTicketSaleInfo & | operator= (const MOTicketSaleInfo &) |
| copy assignment: creates a (deep) copy of the object More... | |
| virtual Nullable< qint64 > | price () const |
| virtual Nullable< qint64 > | pricecategoryid () const |
| Q_ENUMS (TicketState) | |
| virtual Nullable< QString > | seat () const |
| virtual void | seteventid (Nullable< qint64 > s) |
| virtual void | setprice (Nullable< qint64 > s) |
| virtual void | setpricecategoryid (Nullable< qint64 > s) |
| virtual void | setseat (Nullable< QString > s) |
| virtual void | setstatus (Nullable< TicketState > s) |
| virtual void | settags (Nullable< QString > s) |
| virtual Nullable< TicketState > | status () const |
| virtual Nullable< QString > | tags () const |
| QString | toString () |
| Serializes the object to XML and returns the string representation of that XML. More... | |
| QDomElement | toXml (QDomDocument &doc, QString name="TicketSaleInfo") |
| 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 MOTicketSaleInfo | fromString (const QString &) |
| create MOTicketSaleInfo from XML formatted string (inverse of toString) More... | |
| static MOTicketSaleInfo | fromXml (const QDomElement &) |
| create MOTicketSaleInfo from XML (inverse of toXml) More... | |
| static TicketState | locstr2TicketState (QString, bool *ok=0) |
| Converts a localized string into the corresponding enum TicketState value. More... | |
| static TicketState | str2TicketState (QString, bool *ok=0) |
| Converts string into the corresponding enum TicketState value. More... | |
| static QString | TicketState2locstr (TicketState) |
| Converts enum TicketState value into the corresponding localized string. More... | |
| static QString | TicketState2str (TicketState) |
| Converts enum TicketState value into the corresponding string. More... | |
Protected Attributes | |
| Nullable< qint64 > | mp_eventid |
| Nullable< qint64 > | mp_price |
| Nullable< qint64 > | mp_pricecategoryid |
| Nullable< QString > | mp_seat |
| Nullable< TicketState > | mp_status |
| Nullable< QString > | mp_tags |
Properties | |
| Nullable< qint64 > | eventid |
| Nullable< qint64 > | price |
| Nullable< qint64 > | pricecategoryid |
| Nullable< QString > | seat |
| Nullable< TicketState > | status |
| Nullable< QString > | tags |
This class represents only the info from a ticket that is required for calculating seating information.
|
inline |
default constructor: constructs an invalid instance of MOTicketSaleInfo
Referenced by fromString(), and fromXml().
| MOTicketSaleInfo::MOTicketSaleInfo | ( | const MOTicketSaleInfo & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_eventid, mp_price, mp_pricecategoryid, mp_seat, mp_status, and mp_tags.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References seteventid(), setprice(), setpricecategoryid(), setseat(), setstatus(), settags(), and str2TicketState().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
|
static |
create MOTicketSaleInfo from XML formatted string (inverse of toString)
References MOTicketSaleInfo().
|
static |
create MOTicketSaleInfo from XML (inverse of toXml)
References MOTicketSaleInfo().
|
static |
Converts a localized string into the corresponding enum TicketState value.
References Cancelled, MaskBlock, MaskChangeable, MaskPay, MaskReturnable, MaskUsable, Ordered, Refund, Reserved, and Used.
| MOTicketSaleInfo & MOTicketSaleInfo::operator= | ( | const MOTicketSaleInfo & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_eventid, mp_price, mp_pricecategoryid, mp_seat, mp_status, and mp_tags.
|
inlinevirtual |
|
inlinevirtual |
| MOTicketSaleInfo::Q_ENUMS | ( | TicketState | ) |
|
inlinevirtual |
|
inlinevirtual |
Referenced by MOTicketSaleInfo().
|
inlinevirtual |
Referenced by MOTicketSaleInfo().
|
inlinevirtual |
Referenced by MOTicketSaleInfo().
|
inlinevirtual |
Referenced by MOTicketSaleInfo().
|
inlinevirtual |
Referenced by MOTicketSaleInfo().
|
inlinevirtual |
Referenced by MOTicketSaleInfo().
|
inlinevirtual |
|
static |
Converts string into the corresponding enum TicketState value.
References Cancelled, MaskBlock, MaskChangeable, MaskPay, MaskReturnable, MaskUsable, Ordered, Refund, Reserved, and Used.
Referenced by MOTicketSaleInfo().
|
inlinevirtual |
|
static |
Converts enum TicketState value into the corresponding localized string.
References Cancelled, MaskBlock, MaskChangeable, MaskPay, MaskReturnable, MaskUsable, Ordered, Refund, Reserved, and Used.
|
static |
Converts enum TicketState value into the corresponding string.
References Cancelled, MaskBlock, MaskChangeable, MaskPay, MaskReturnable, MaskUsable, Ordered, Refund, Reserved, and Used.
| QString MOTicketSaleInfo::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
| QDomElement MOTicketSaleInfo::toXml | ( | QDomDocument & | doc, |
| QString | name = "TicketSaleInfo" |
||
| ) |
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 "MOTicketSaleInfo" is used |
Referenced by toString().
| void MOTicketSaleInfo::toXml | ( | QDomDocument & | doc, |
| QDomElement & | r | ||
| ) |
Serializes the object into the given element.
References mp_eventid, mp_price, mp_pricecategoryid, mp_seat, mp_status, and mp_tags.
|
protected |
Referenced by MOTicketSaleInfo(), operator=(), and toXml().
|
protected |
Referenced by MOTicketSaleInfo(), operator=(), and toXml().
|
protected |
Referenced by MOTicketSaleInfo(), operator=(), and toXml().
|
protected |
Referenced by MOTicketSaleInfo(), operator=(), and toXml().
|
protected |
Referenced by MOTicketSaleInfo(), operator=(), and toXml().
|
protected |
Referenced by MOTicketSaleInfo(), operator=(), and toXml().
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |