|
MagicSmoke
$VERSION$
|
#include <srcMOTicketAudit.h>
Public Member Functions | |
| MOTicketAudit () | |
| default constructor: constructs an invalid instance of MOTicketAudit More... | |
| MOTicketAudit (const MOTicketAudit &) | |
| copy constructor: creates a (deep) copy of the object More... | |
| MOTicketAudit (const QDomElement &) | |
| special constructor: create from the XML representation, deserializing the object More... | |
| virtual | ~MOTicketAudit () |
| destructor: deletes this copy of the object More... | |
| virtual Nullable< qint64 > | audittime () const |
| virtual Nullable< QString > | audittransaction () const |
| virtual Nullable< QString > | audituname () const |
| virtual Nullable< QString > | eventname () const |
| virtual Nullable< qint64 > | eventstart () const |
| MOTicketAudit & | operator= (const MOTicketAudit &) |
| copy assignment: creates a (deep) copy of the object More... | |
| virtual void | setaudittime (Nullable< qint64 > s) |
| virtual void | setaudittransaction (Nullable< QString > s) |
| virtual void | setaudituname (Nullable< QString > s) |
| virtual void | seteventname (Nullable< QString > s) |
| virtual void | seteventstart (Nullable< qint64 > s) |
| QString | toString () |
| Serializes the object to XML and returns the string representation of that XML. More... | |
| QDomElement | toXml (QDomDocument &doc, QString name="TicketAudit") |
| 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... | |
Public Member Functions inherited from MOTicket | |
| int | amountToPay () const |
| returns the amount to be paid for this ticket; this may be 0 even if there is a price attached More... | |
| MOEvent | event () const |
| returns the event that this ticket belongs to - does a roundtrip to the database the first time this is called! More... | |
| QString | priceCategoryName () const |
| returns the full price category name More... | |
| QString | priceCategoryShort () const |
| returns the abbreviation for the price category More... | |
| QString | priceString () const |
| returns the price as string More... | |
| void | setEvent (const MOEvent &e) |
| used by label editor: sets the simulated event More... | |
| QString | statusString () const |
| returns the ticket status as localized string More... | |
Public Member Functions inherited from MOTicketAbstract | |
| MOTicketAbstract () | |
| default constructor: constructs an invalid instance of MOTicketAbstract More... | |
| MOTicketAbstract (const MOTicketAbstract &) | |
| copy constructor: creates a (deep) copy of the object More... | |
| MOTicketAbstract (const QDomElement &) | |
| special constructor: create from the XML representation, deserializing the object More... | |
| virtual | ~MOTicketAbstract () |
| destructor: deletes this copy of the object More... | |
| virtual Nullable< qint64 > | eventid () const |
| MOTicketAbstract & | operator= (const MOTicketAbstract &) |
| copy assignment: creates a (deep) copy of the object More... | |
| virtual Nullable< qint64 > | orderid () const |
| virtual Nullable< qint64 > | price () const |
| virtual Nullable< MOPriceCategory > | pricecategory () const |
| virtual Nullable< qint64 > | pricecategoryid () const |
| Q_ENUMS (TicketState) | |
| virtual Nullable< QString > | seat () const |
| virtual void | seteventid (Nullable< qint64 > s) |
| virtual void | setorderid (Nullable< qint64 > s) |
| virtual void | setprice (Nullable< qint64 > s) |
| virtual void | setpricecategory (Nullable< MOPriceCategory > 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 void | setticketid (Nullable< QString > s) |
| uniquely identifies the ticket, this ID is automatically generated when the ticket is created by the server More... | |
| virtual Nullable< TicketState > | status () const |
| virtual Nullable< QString > | tags () const |
| virtual Nullable< QString > | ticketid () const |
| uniquely identifies the ticket, this ID is automatically generated when the ticket is created by the server More... | |
| QString | toString () |
| Serializes the object to XML and returns the string representation of that XML. More... | |
| QDomElement | toXml (QDomDocument &doc, QString name="Ticket") |
| 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 MOTicketAudit | fromString (const QString &) |
| create MOTicketAudit from XML formatted string (inverse of toString) More... | |
| static MOTicketAudit | fromXml (const QDomElement &) |
| create MOTicketAudit from XML (inverse of toXml) More... | |
Static Public Member Functions inherited from MOTicketAbstract | |
| static MOTicketAbstract | fromString (const QString &) |
| create MOTicketAbstract from XML formatted string (inverse of toString) More... | |
| static MOTicketAbstract | fromXml (const QDomElement &) |
| create MOTicketAbstract 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_audittime |
| Nullable< QString > | mp_audittransaction |
| Nullable< QString > | mp_audituname |
| Nullable< QString > | mp_eventname |
| Nullable< qint64 > | mp_eventstart |
Protected Attributes inherited from MOTicketAbstract | |
| Nullable< qint64 > | mp_eventid |
| Nullable< qint64 > | mp_orderid |
| Nullable< qint64 > | mp_price |
| Nullable< MOPriceCategory > | mp_pricecategory |
| Nullable< qint64 > | mp_pricecategoryid |
| Nullable< QString > | mp_seat |
| Nullable< TicketState > | mp_status |
| Nullable< QString > | mp_tags |
| Nullable< QString > | mp_ticketid |
Additional Inherited Members | |
Public Types inherited from MOTicketAbstract | |
| enum | TicketState { Reserved =785, Ordered =786, Used =771, Cancelled =4, Refund =4, MaskBlock =256, MaskPay =512, MaskUsable =768, MaskReturnable =16, MaskChangeable =16 } |
Properties inherited from MOTicketAbstract | |
| Nullable< qint64 > | eventid |
| Nullable< qint64 > | orderid |
| Nullable< qint64 > | price |
| Nullable< MOPriceCategory > | pricecategory |
| Nullable< qint64 > | pricecategoryid |
| Nullable< QString > | seat |
| Nullable< TicketState > | status |
| Nullable< QString > | tags |
| Nullable< QString > | ticketid |
| uniquely identifies the ticket, this ID is automatically generated when the ticket is created by the server More... | |
|
inline |
default constructor: constructs an invalid instance of MOTicketAudit
Referenced by fromString(), and fromXml().
| MOTicketAudit::MOTicketAudit | ( | const MOTicketAudit & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_audittime, mp_audittransaction, mp_audituname, mp_eventname, and mp_eventstart.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setaudittime(), setaudittransaction(), setaudituname(), seteventname(), and seteventstart().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
static |
create MOTicketAudit from XML formatted string (inverse of toString)
References MOTicketAudit().
|
static |
create MOTicketAudit from XML (inverse of toXml)
References MOTicketAudit().
| MOTicketAudit & MOTicketAudit::operator= | ( | const MOTicketAudit & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_audittime, mp_audittransaction, mp_audituname, mp_eventname, mp_eventstart, and MOTicketAbstract::operator=().
|
inlinevirtual |
Referenced by MOTicketAudit().
|
inlinevirtual |
Referenced by MOTicketAudit().
|
inlinevirtual |
Referenced by MOTicketAudit().
|
inlinevirtual |
Referenced by MOTicketAudit().
|
inlinevirtual |
Referenced by MOTicketAudit().
| QString MOTicketAudit::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
| QDomElement MOTicketAudit::toXml | ( | QDomDocument & | doc, |
| QString | name = "TicketAudit" |
||
| ) |
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 "MOTicketAudit" is used |
Referenced by toString().
| void MOTicketAudit::toXml | ( | QDomDocument & | doc, |
| QDomElement & | r | ||
| ) |
Serializes the object into the given element.
References mp_audittime, mp_audittransaction, mp_audituname, mp_eventname, mp_eventstart, and MOTicketAbstract::toXml().
|
protected |
Referenced by MOTicketAudit(), operator=(), and toXml().
|
protected |
Referenced by MOTicketAudit(), operator=(), and toXml().
|
protected |
Referenced by MOTicketAudit(), operator=(), and toXml().
|
protected |
Referenced by MOTicketAudit(), operator=(), and toXml().
|
protected |
Referenced by MOTicketAudit(), operator=(), and toXml().