MagicSmoke  $VERSION$
MOEventPrice Class Reference

#include <srcMOEventPrice.h>

Inheritance diagram for MOEventPrice:

Public Member Functions

 MOEventPrice ()
 default constructor: constructs an invalid instance of MOEventPrice More...
 
 MOEventPrice (const MOEventPrice &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOEventPrice (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOEventPrice ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< qint64 > amounttickets () const
 calculated property: contains the amount of tickets currently contained in this price, ignored if sent from client More...
 
virtual Nullable< qint64 > amountticketsblock () const
 calculated property: contains the amount of tickets currently contained in this price that are actually usable or reserved, ignored if sent from client More...
 
virtual Nullable< bool > canuse () const
 
virtual Nullable< qint64 > eventid () const
 
virtual Nullable< QString > flags () const
 
virtual Nullable< qint64 > maxavailable () const
 
MOEventPriceoperator= (const MOEventPrice &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual Nullable< qint64 > price () const
 
virtual Nullable< MOPriceCategorypricecategory () const
 
virtual Nullable< qint64 > pricecategoryid () const
 
virtual Nullable< qint64 > prio () const
 
virtual void setamounttickets (Nullable< qint64 > s)
 calculated property: contains the amount of tickets currently contained in this price, ignored if sent from client More...
 
virtual void setamountticketsblock (Nullable< qint64 > s)
 calculated property: contains the amount of tickets currently contained in this price that are actually usable or reserved, ignored if sent from client More...
 
virtual void setcanuse (Nullable< bool > s)
 
virtual void seteventid (Nullable< qint64 > s)
 
virtual void setflags (Nullable< QString > s)
 
virtual void setmaxavailable (Nullable< qint64 > s)
 
virtual void setprice (Nullable< qint64 > s)
 
virtual void setpricecategory (Nullable< MOPriceCategory > s)
 
virtual void setpricecategoryid (Nullable< qint64 > s)
 
virtual void setprio (Nullable< qint64 > s)
 
virtual void settags (Nullable< QString > s)
 
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="EventPrice")
 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 MOEventPrice fromString (const QString &)
 create MOEventPrice from XML formatted string (inverse of toString) More...
 
static MOEventPrice fromXml (const QDomElement &)
 create MOEventPrice from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< qint64 > mp_amounttickets
 
Nullable< qint64 > mp_amountticketsblock
 
Nullable< bool > mp_canuse
 
Nullable< qint64 > mp_eventid
 
Nullable< QString > mp_flags
 
Nullable< qint64 > mp_maxavailable
 
Nullable< qint64 > mp_price
 
Nullable< MOPriceCategorymp_pricecategory
 
Nullable< qint64 > mp_pricecategoryid
 
Nullable< qint64 > mp_prio
 
Nullable< QString > mp_tags
 

Constructor & Destructor Documentation

MOEventPrice::MOEventPrice ( )
inline

default constructor: constructs an invalid instance of MOEventPrice

Referenced by fromString(), and fromXml().

MOEventPrice::MOEventPrice ( const MOEventPrice o)

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

References mp_amounttickets, mp_amountticketsblock, mp_canuse, mp_eventid, mp_flags, mp_maxavailable, mp_price, mp_pricecategory, mp_pricecategoryid, mp_prio, and mp_tags.

MOEventPrice::MOEventPrice ( const QDomElement &  root)
explicit

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

References setamounttickets(), setamountticketsblock(), setcanuse(), seteventid(), setflags(), setmaxavailable(), setprice(), setpricecategory(), setpricecategoryid(), setprio(), and settags().

virtual MOEventPrice::~MOEventPrice ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<qint64> MOEventPrice::amounttickets ( ) const
inlinevirtual

calculated property: contains the amount of tickets currently contained in this price, ignored if sent from client

virtual Nullable<qint64> MOEventPrice::amountticketsblock ( ) const
inlinevirtual

calculated property: contains the amount of tickets currently contained in this price that are actually usable or reserved, ignored if sent from client

virtual Nullable<bool> MOEventPrice::canuse ( ) const
inlinevirtual
virtual Nullable<qint64> MOEventPrice::eventid ( ) const
inlinevirtual
virtual Nullable<QString> MOEventPrice::flags ( ) const
inlinevirtual
MOEventPrice MOEventPrice::fromString ( const QString &  txt)
static

create MOEventPrice from XML formatted string (inverse of toString)

References MOEventPrice().

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

create MOEventPrice from XML (inverse of toXml)

References MOEventPrice().

virtual Nullable<qint64> MOEventPrice::maxavailable ( ) const
inlinevirtual
MOEventPrice & MOEventPrice::operator= ( const MOEventPrice o)

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

References mp_amounttickets, mp_amountticketsblock, mp_canuse, mp_eventid, mp_flags, mp_maxavailable, mp_price, mp_pricecategory, mp_pricecategoryid, mp_prio, and mp_tags.

virtual Nullable<qint64> MOEventPrice::price ( ) const
inlinevirtual
virtual Nullable<MOPriceCategory> MOEventPrice::pricecategory ( ) const
inlinevirtual
virtual Nullable<qint64> MOEventPrice::pricecategoryid ( ) const
inlinevirtual
virtual Nullable<qint64> MOEventPrice::prio ( ) const
inlinevirtual
virtual void MOEventPrice::setamounttickets ( Nullable< qint64 >  s)
inlinevirtual

calculated property: contains the amount of tickets currently contained in this price, ignored if sent from client

Referenced by MOEventPrice().

virtual void MOEventPrice::setamountticketsblock ( Nullable< qint64 >  s)
inlinevirtual

calculated property: contains the amount of tickets currently contained in this price that are actually usable or reserved, ignored if sent from client

Referenced by MOEventPrice().

virtual void MOEventPrice::setcanuse ( Nullable< bool >  s)
inlinevirtual

Referenced by MOEventPrice().

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

Referenced by MOEventPrice().

virtual void MOEventPrice::setflags ( Nullable< QString >  s)
inlinevirtual

Referenced by MOEventPrice().

virtual void MOEventPrice::setmaxavailable ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOEventPrice().

virtual void MOEventPrice::setprice ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOEventPrice().

virtual void MOEventPrice::setpricecategory ( Nullable< MOPriceCategory s)
inlinevirtual

Referenced by MOEventPrice().

virtual void MOEventPrice::setpricecategoryid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOEventPrice().

virtual void MOEventPrice::setprio ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOEventPrice().

virtual void MOEventPrice::settags ( Nullable< QString >  s)
inlinevirtual

Referenced by MOEventPrice().

virtual Nullable<QString> MOEventPrice::tags ( ) const
inlinevirtual
QString MOEventPrice::toString ( )

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

References toXml().

QDomElement MOEventPrice::toXml ( QDomDocument &  doc,
QString  name = "EventPrice" 
)

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 "MOEventPrice" is used

Referenced by toString().

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

Member Data Documentation

Nullable<qint64> MOEventPrice::mp_amounttickets
protected

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

Nullable<qint64> MOEventPrice::mp_amountticketsblock
protected

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

Nullable<bool> MOEventPrice::mp_canuse
protected

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

Nullable<qint64> MOEventPrice::mp_eventid
protected

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

Nullable<QString> MOEventPrice::mp_flags
protected

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

Nullable<qint64> MOEventPrice::mp_maxavailable
protected

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

Nullable<qint64> MOEventPrice::mp_price
protected

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

Nullable<MOPriceCategory> MOEventPrice::mp_pricecategory
protected

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

Nullable<qint64> MOEventPrice::mp_pricecategoryid
protected

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

Nullable<qint64> MOEventPrice::mp_prio
protected

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

Nullable<QString> MOEventPrice::mp_tags
protected

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


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