13 #ifndef MAGICSMOKE_MOVOUCHER_H
14 #define MAGICSMOKE_MOVOUCHER_H
16 #include "MOVoucherAbstract"
19 #ifndef MSIFACE_EXPORT
20 #define MSIFACE_EXPORT Q_DECL_IMPORT
28 Q_PROPERTY(QString valueString READ valueString)
29 Q_PROPERTY(QString statusString READ statusString)
30 Q_PROPERTY(QString priceString READ priceString)
virtual Nullable< qint64 > value() const
What the voucher is worth in cents.
Definition: srcMOVoucherAbstract.h:67
virtual Nullable< qint64 > validtime() const
Definition: srcMOVoucherAbstract.h:79
QString cent2str(qint64 c, bool localize)
converts a cent value into a (localized) string
Definition: misc.cpp:73
QString statusString() const
returns the status of the voucher as string
Definition: voucher.h:37
QString priceString() const
returns the price as string
Definition: voucher.h:39
virtual Nullable< QString > voucherid() const
Definition: srcMOVoucherAbstract.h:65
QString unix2date(qint64 tm, bool localize)
converts a unix timestamp into a date
Definition: misc.cpp:94
#define MSIFACE_EXPORT
Definition: voucher.h:20
virtual Nullable< qint64 > price() const
What the voucher costs in cents.
Definition: srcMOVoucherAbstract.h:69
virtual Nullable< VoucherState > status() const
Definition: srcMOVoucherAbstract.h:71
Q_DECLARE_METATYPE(QDomNode)
Definition: srcMOVoucherAbstract.h:14
QString valueString() const
returns the current value as string
Definition: voucher.h:35
QString validDate() const
returns the validity date
Definition: voucher.h:41
static QString VoucherState2locstr(VoucherState)
Converts enum VoucherState value into the corresponding localized string.
Definition: srcMOVoucherAbstract.cpp:37
bool isValid() const
returns whether this is a valid voucher object (ie.
Definition: voucher.h:33