MagicSmoke  $VERSION$
MOTicketAudit Class Reference

#include <srcMOTicketAudit.h>

Inheritance diagram for MOTicketAudit:
MOTicket MOTicketAbstract

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
 
MOTicketAuditoperator= (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
 
MOTicketAbstractoperator= (const MOTicketAbstract &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual Nullable< qint64 > orderid () const
 
virtual Nullable< qint64 > price () const
 
virtual Nullable< MOPriceCategorypricecategory () 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< TicketStatestatus () 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< MOPriceCategorymp_pricecategory
 
Nullable< qint64 > mp_pricecategoryid
 
Nullable< QString > mp_seat
 
Nullable< TicketStatemp_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< MOPriceCategorypricecategory
 
Nullable< qint64 > pricecategoryid
 
Nullable< QString > seat
 
Nullable< TicketStatestatus
 
Nullable< QString > tags
 
Nullable< QString > ticketid
 uniquely identifies the ticket, this ID is automatically generated when the ticket is created by the server More...
 

Constructor & Destructor Documentation

MOTicketAudit::MOTicketAudit ( )
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.

MOTicketAudit::MOTicketAudit ( const QDomElement &  root)
explicit

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

References setaudittime(), setaudittransaction(), setaudituname(), seteventname(), and seteventstart().

virtual MOTicketAudit::~MOTicketAudit ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<qint64> MOTicketAudit::audittime ( ) const
inlinevirtual
virtual Nullable<QString> MOTicketAudit::audittransaction ( ) const
inlinevirtual
virtual Nullable<QString> MOTicketAudit::audituname ( ) const
inlinevirtual
virtual Nullable<QString> MOTicketAudit::eventname ( ) const
inlinevirtual
virtual Nullable<qint64> MOTicketAudit::eventstart ( ) const
inlinevirtual
MOTicketAudit MOTicketAudit::fromString ( const QString &  txt)
static

create MOTicketAudit from XML formatted string (inverse of toString)

References MOTicketAudit().

MOTicketAudit MOTicketAudit::fromXml ( const QDomElement &  root)
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=().

virtual void MOTicketAudit::setaudittime ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOTicketAudit().

virtual void MOTicketAudit::setaudittransaction ( Nullable< QString >  s)
inlinevirtual

Referenced by MOTicketAudit().

virtual void MOTicketAudit::setaudituname ( Nullable< QString >  s)
inlinevirtual

Referenced by MOTicketAudit().

virtual void MOTicketAudit::seteventname ( Nullable< QString >  s)
inlinevirtual

Referenced by MOTicketAudit().

virtual void MOTicketAudit::seteventstart ( Nullable< qint64 >  s)
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.

Parameters
docthe DOM document node for which to generate the element
namethe 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().

Member Data Documentation

Nullable<qint64> MOTicketAudit::mp_audittime
protected

Referenced by MOTicketAudit(), operator=(), and toXml().

Nullable<QString> MOTicketAudit::mp_audittransaction
protected

Referenced by MOTicketAudit(), operator=(), and toXml().

Nullable<QString> MOTicketAudit::mp_audituname
protected

Referenced by MOTicketAudit(), operator=(), and toXml().

Nullable<QString> MOTicketAudit::mp_eventname
protected

Referenced by MOTicketAudit(), operator=(), and toXml().

Nullable<qint64> MOTicketAudit::mp_eventstart
protected

Referenced by MOTicketAudit(), operator=(), and toXml().


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