13 #ifndef MAGICSMOKE_MOTICKET_H
14 #define MAGICSMOKE_MOTICKET_H
16 #include "MOTicketAbstract"
20 #ifndef MSIFACE_EXPORT
21 #define MSIFACE_EXPORT Q_DECL_IMPORT
29 Q_PROPERTY(
int amountToPay READ amountToPay)
30 Q_PROPERTY(QString priceString READ priceString)
31 Q_PROPERTY(QString statusString READ statusString)
32 Q_PROPERTY(QString priceCategoryName READ priceCategoryName)
33 Q_PROPERTY(QString priceCategoryShort READ priceCategoryShort)
45 QString priceCategoryName()
const;
47 QString priceCategoryShort()
const;
encapsulation of an event, this class wraps the auto-generated event class to provide some convenienc...
Definition: event.h:25
QString statusString() const
returns the ticket status as localized string
Definition: ticket.h:42
static QString TicketState2locstr(TicketState)
Converts enum TicketState value into the corresponding localized string.
Definition: srcMOTicketAbstract.cpp:55
QString cent2str(qint64 c, bool localize)
converts a cent value into a (localized) string
Definition: misc.cpp:73
int amountToPay() const
returns the amount to be paid for this ticket; this may be 0 even if there is a price attached ...
Definition: ticket.h:36
#define MSIFACE_EXPORT
Definition: boxwrapper.h:18
This class represents the data of a ticket as stored in the database.
Definition: srcMOTicketAbstract.h:16
Q_DECLARE_METATYPE(QDomNode)
QString priceString() const
returns the price as string
Definition: ticket.h:39
virtual Nullable< TicketState > status() const
Definition: srcMOTicketAbstract.h:88
virtual Nullable< qint64 > price() const
Definition: srcMOTicketAbstract.h:86