|
MagicSmoke
$VERSION$
|
#include <srcMOVoucherAbstract.h>
Public Types | |
| enum | VoucherState { Ok =0, InvalidValue =1, InvalidPrice =2, InvalidTime =3 } |
Public Member Functions | |
| MOVoucherAbstract () | |
| default constructor: constructs an invalid instance of MOVoucherAbstract More... | |
| MOVoucherAbstract (const MOVoucherAbstract &) | |
| copy constructor: creates a (deep) copy of the object More... | |
| MOVoucherAbstract (const QDomElement &) | |
| special constructor: create from the XML representation, deserializing the object More... | |
| virtual | ~MOVoucherAbstract () |
| destructor: deletes this copy of the object More... | |
| virtual Nullable< bool > | isused () const |
| The voucher has been used. There may still be value on it. More... | |
| MOVoucherAbstract & | operator= (const MOVoucherAbstract &) |
| copy assignment: creates a (deep) copy of the object More... | |
| virtual Nullable< qint64 > | orderid () const |
| virtual Nullable< qint64 > | price () const |
| What the voucher costs in cents. More... | |
| Q_ENUMS (VoucherState) | |
| virtual void | setisused (Nullable< bool > s) |
| The voucher has been used. There may still be value on it. More... | |
| virtual void | setorderid (Nullable< qint64 > s) |
| virtual void | setprice (Nullable< qint64 > s) |
| What the voucher costs in cents. More... | |
| virtual void | setstatus (Nullable< VoucherState > s) |
| virtual void | settags (Nullable< QString > s) |
| virtual void | setvalidtime (Nullable< qint64 > s) |
| virtual void | setvalue (Nullable< qint64 > s) |
| What the voucher is worth in cents. More... | |
| virtual void | setvoucherid (Nullable< QString > s) |
| virtual Nullable< VoucherState > | status () const |
| 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="Voucher") |
| 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... | |
| virtual Nullable< qint64 > | validtime () const |
| virtual Nullable< qint64 > | value () const |
| What the voucher is worth in cents. More... | |
| virtual Nullable< QString > | voucherid () const |
Static Public Member Functions | |
| static MOVoucherAbstract | fromString (const QString &) |
| create MOVoucherAbstract from XML formatted string (inverse of toString) More... | |
| static MOVoucherAbstract | fromXml (const QDomElement &) |
| create MOVoucherAbstract from XML (inverse of toXml) More... | |
| static VoucherState | locstr2VoucherState (QString, bool *ok=0) |
| Converts a localized string into the corresponding enum VoucherState value. More... | |
| static VoucherState | str2VoucherState (QString, bool *ok=0) |
| Converts string into the corresponding enum VoucherState value. More... | |
| static QString | VoucherState2locstr (VoucherState) |
| Converts enum VoucherState value into the corresponding localized string. More... | |
| static QString | VoucherState2str (VoucherState) |
| Converts enum VoucherState value into the corresponding string. More... | |
Protected Attributes | |
| Nullable< bool > | mp_isused |
| Nullable< qint64 > | mp_orderid |
| Nullable< qint64 > | mp_price |
| Nullable< VoucherState > | mp_status |
| Nullable< QString > | mp_tags |
| Nullable< qint64 > | mp_validtime |
| Nullable< qint64 > | mp_value |
| Nullable< QString > | mp_voucherid |
Properties | |
| Nullable< bool > | isused |
| The voucher has been used. There may still be value on it. More... | |
| Nullable< qint64 > | orderid |
| Nullable< qint64 > | price |
| What the voucher costs in cents. More... | |
| Nullable< VoucherState > | status |
| Nullable< QString > | tags |
| Nullable< qint64 > | validtime |
| Nullable< qint64 > | value |
| What the voucher is worth in cents. More... | |
| Nullable< QString > | voucherid |
|
inline |
default constructor: constructs an invalid instance of MOVoucherAbstract
Referenced by fromString(), and fromXml().
| MOVoucherAbstract::MOVoucherAbstract | ( | const MOVoucherAbstract & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_isused, mp_orderid, mp_price, mp_status, mp_tags, mp_validtime, mp_value, and mp_voucherid.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setisused(), setorderid(), setprice(), setstatus(), settags(), setvalidtime(), setvalue(), setvoucherid(), and str2VoucherState().
|
inlinevirtual |
destructor: deletes this copy of the object
|
static |
create MOVoucherAbstract from XML formatted string (inverse of toString)
References MOVoucherAbstract().
|
static |
create MOVoucherAbstract from XML (inverse of toXml)
References MOVoucherAbstract().
|
inlinevirtual |
The voucher has been used. There may still be value on it.
|
static |
Converts a localized string into the corresponding enum VoucherState value.
References InvalidPrice, InvalidTime, InvalidValue, and Ok.
| MOVoucherAbstract & MOVoucherAbstract::operator= | ( | const MOVoucherAbstract & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_isused, mp_orderid, mp_price, mp_status, mp_tags, mp_validtime, mp_value, and mp_voucherid.
Referenced by MOVoucherAudit::operator=().
|
inlinevirtual |
|
inlinevirtual |
What the voucher costs in cents.
Referenced by MOVoucher::priceString().
| MOVoucherAbstract::Q_ENUMS | ( | VoucherState | ) |
|
inlinevirtual |
The voucher has been used. There may still be value on it.
Referenced by MOVoucherAbstract().
|
inlinevirtual |
Referenced by MOVoucherAbstract().
|
inlinevirtual |
What the voucher costs in cents.
Referenced by MOVoucherAbstract().
|
inlinevirtual |
Referenced by MOVoucherAbstract().
|
inlinevirtual |
Referenced by MOVoucherAbstract().
|
inlinevirtual |
Referenced by MOVoucherAbstract().
|
inlinevirtual |
What the voucher is worth in cents.
Referenced by MOVoucherAbstract().
|
inlinevirtual |
Referenced by MOVoucherAbstract().
|
inlinevirtual |
Referenced by MOVoucher::statusString().
|
static |
Converts string into the corresponding enum VoucherState value.
References InvalidPrice, InvalidTime, InvalidValue, and Ok.
Referenced by MOVoucherAbstract().
|
inlinevirtual |
| QString MOVoucherAbstract::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
| QDomElement MOVoucherAbstract::toXml | ( | QDomDocument & | doc, |
| QString | name = "Voucher" |
||
| ) |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself.
| doc | the DOM document node for which to generate the element |
| name | the name to give the generated element, per default "MOVoucherAbstract" is used |
Referenced by toString(), and MOVoucherAudit::toXml().
| void MOVoucherAbstract::toXml | ( | QDomDocument & | doc, |
| QDomElement & | r | ||
| ) |
Serializes the object into the given element.
References mp_isused, mp_orderid, mp_price, mp_status, mp_tags, mp_validtime, mp_value, and mp_voucherid.
|
inlinevirtual |
Referenced by MOVoucher::validDate().
|
inlinevirtual |
What the voucher is worth in cents.
Referenced by MOVoucher::valueString().
|
inlinevirtual |
Referenced by MOVoucher::isValid().
|
static |
Converts enum VoucherState value into the corresponding localized string.
References InvalidPrice, InvalidTime, InvalidValue, and Ok.
Referenced by MOVoucher::statusString().
|
static |
Converts enum VoucherState value into the corresponding string.
References InvalidPrice, InvalidTime, InvalidValue, and Ok.
|
protected |
Referenced by MOVoucherAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOVoucherAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOVoucherAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOVoucherAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOVoucherAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOVoucherAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOVoucherAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOVoucherAbstract(), operator=(), and toXml().
|
readwrite |
The voucher has been used. There may still be value on it.
|
readwrite |
|
readwrite |
What the voucher costs in cents.
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
What the voucher is worth in cents.
|
readwrite |
Referenced by MVoucherLabel::getVariable(), and MOAItem::itemID().