MagicSmoke
$VERSION$
|
encapsulation of an event, this class wraps the auto-generated event class to provide some convenience methods More...
#include <event.h>
Public Member Functions | |
MOEvent (qint64) | |
get event directly from server More... | |
QString | endTimeString () const |
returns the end time of the event as localized string More... | |
Nullable< qint64 > | eventid () const |
alias for id() More... | |
bool | isValid () const |
returns whether the event is valid. More... | |
QList< MOEventPrice > | priceFiltered () const |
returns only the prices that this user can order for More... | |
QRegExp | priceRegExp () const |
returns the local regular expression for prices More... | |
QString | priceString () const |
returns the price as a localized string More... | |
QString | startDateString () const |
returns the start date as localized string More... | |
QString | startTimeString () const |
returns the start time of the event as localized string More... | |
Public Member Functions inherited from MOEventAbstract | |
MOEventAbstract () | |
default constructor: constructs an invalid instance of MOEventAbstract More... | |
MOEventAbstract (const MOEventAbstract &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOEventAbstract (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOEventAbstract () |
destructor: deletes this copy of the object More... | |
virtual void | addprice (Nullable< MOEventPrice > a) |
virtual Nullable< qint64 > | amountFree () const |
virtual Nullable< qint64 > | amountReserved () const |
virtual Nullable< qint64 > | amountSold () const |
virtual Nullable< MOArtist > | artist () const |
virtual Nullable< qint64 > | artistid () const |
virtual Nullable< QString > | cancelreason () const |
virtual Nullable< bool > | canuse () const |
virtual Nullable< qint64 > | capacity () const |
virtual void | clearprice () |
virtual Nullable< QString > | comment () const |
virtual Nullable< QString > | description () const |
virtual Nullable< qint64 > | end () const |
virtual Nullable< QString > | flags () const |
virtual Nullable< qint64 > | id () const |
virtual Nullable< bool > | iscancelled () const |
MOEventAbstract & | operator= (const MOEventAbstract &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual QList< MOEventPrice > | price () const |
virtual Nullable< QString > | room () const |
virtual Nullable< MOSeatPlanInfo > | seatplan () const |
virtual Nullable< qint64 > | seatplanid () const |
virtual void | setamountFree (Nullable< qint64 > s) |
virtual void | setamountReserved (Nullable< qint64 > s) |
virtual void | setamountSold (Nullable< qint64 > s) |
virtual void | setartist (Nullable< MOArtist > s) |
virtual void | setartistid (Nullable< qint64 > s) |
virtual void | setcancelreason (Nullable< QString > s) |
virtual void | setcanuse (Nullable< bool > s) |
virtual void | setcapacity (Nullable< qint64 > s) |
virtual void | setcomment (Nullable< QString > s) |
virtual void | setdescription (Nullable< QString > s) |
virtual void | setend (Nullable< qint64 > s) |
virtual void | setflags (Nullable< QString > s) |
virtual void | setid (Nullable< qint64 > s) |
virtual void | setiscancelled (Nullable< bool > s) |
virtual void | setprice (QList< MOEventPrice > s) |
virtual void | setroom (Nullable< QString > s) |
virtual void | setseatplan (Nullable< MOSeatPlanInfo > s) |
virtual void | setseatplanid (Nullable< qint64 > s) |
virtual void | setstart (Nullable< qint64 > s) |
virtual void | settags (Nullable< QString > s) |
virtual void | settax (Nullable< qint64 > s) |
virtual void | settitle (Nullable< QString > s) |
virtual Nullable< qint64 > | start () const |
virtual Nullable< QString > | tags () const |
virtual Nullable< qint64 > | tax () const |
virtual Nullable< QString > | title () const |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="Event") |
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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from MOEventAbstract | |
static MOEventAbstract | fromString (const QString &) |
create MOEventAbstract from XML formatted string (inverse of toString) More... | |
static MOEventAbstract | fromXml (const QDomElement &) |
create MOEventAbstract from XML (inverse of toXml) More... | |
Protected Attributes inherited from MOEventAbstract | |
Nullable< qint64 > | mp_amountFree |
Nullable< qint64 > | mp_amountReserved |
Nullable< qint64 > | mp_amountSold |
Nullable< MOArtist > | mp_artist |
Nullable< qint64 > | mp_artistid |
Nullable< QString > | mp_cancelreason |
Nullable< bool > | mp_canuse |
Nullable< qint64 > | mp_capacity |
Nullable< QString > | mp_comment |
Nullable< QString > | mp_description |
Nullable< qint64 > | mp_end |
Nullable< QString > | mp_flags |
Nullable< qint64 > | mp_id |
Nullable< bool > | mp_iscancelled |
QList< MOEventPrice > | mp_price |
Nullable< QString > | mp_room |
Nullable< MOSeatPlanInfo > | mp_seatplan |
Nullable< qint64 > | mp_seatplanid |
Nullable< qint64 > | mp_start |
Nullable< QString > | mp_tags |
Nullable< qint64 > | mp_tax |
Nullable< QString > | mp_title |
encapsulation of an event, this class wraps the auto-generated event class to provide some convenience methods
MOEvent::MOEvent | ( | qint64 | i | ) |
get event directly from server
References MTGetEvent::getevent(), MSInterface::instance(), and MInterface::queryGetEvent().
QString MOEvent::endTimeString | ( | ) | const |
returns the end time of the event as localized string
|
inline |
alias for id()
References MOEventAbstract::id().
|
inline |
returns whether the event is valid.
an event can be invalid if it is uninitialized (negative ID) or the server request failed
QList<MOEventPrice> MOEvent::priceFiltered | ( | ) | const |
returns only the prices that this user can order for
QRegExp MOEvent::priceRegExp | ( | ) | const |
returns the local regular expression for prices
QString MOEvent::priceString | ( | ) | const |
returns the price as a localized string
QString MOEvent::startDateString | ( | ) | const |
returns the start date as localized string
QString MOEvent::startTimeString | ( | ) | const |
returns the start time of the event as localized string