MagicSmoke
$VERSION$
|
#include <srcMOVoucherAudit.h>
Public Member Functions | |
MOVoucherAudit () | |
default constructor: constructs an invalid instance of MOVoucherAudit More... | |
MOVoucherAudit (const MOVoucherAudit &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOVoucherAudit (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOVoucherAudit () |
destructor: deletes this copy of the object More... | |
virtual Nullable< qint64 > | audittime () const |
virtual Nullable< QString > | audittransaction () const |
virtual Nullable< QString > | audituname () const |
virtual Nullable< QString > | comment () const |
MOVoucherAudit & | operator= (const MOVoucherAudit &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual void | setaudittime (Nullable< qint64 > s) |
virtual void | setaudittransaction (Nullable< QString > s) |
virtual void | setaudituname (Nullable< QString > s) |
virtual void | setcomment (Nullable< QString > s) |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="VoucherAudit") |
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... | |
Public Member Functions inherited from MOVoucher | |
bool | isValid () const |
returns whether this is a valid voucher object (ie. More... | |
QString | priceString () const |
returns the price as string More... | |
QString | statusString () const |
returns the status of the voucher as string More... | |
QString | validDate () const |
returns the validity date More... | |
QString | valueString () const |
returns the current value as string More... | |
Public Member Functions inherited from MOVoucherAbstract | |
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 MOVoucherAudit | fromString (const QString &) |
create MOVoucherAudit from XML formatted string (inverse of toString) More... | |
static MOVoucherAudit | fromXml (const QDomElement &) |
create MOVoucherAudit from XML (inverse of toXml) More... | |
Static Public Member Functions inherited from MOVoucherAbstract | |
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< qint64 > | mp_audittime |
Nullable< QString > | mp_audittransaction |
Nullable< QString > | mp_audituname |
Nullable< QString > | mp_comment |
Protected Attributes inherited from MOVoucherAbstract | |
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 |
Additional Inherited Members | |
Public Types inherited from MOVoucherAbstract | |
enum | VoucherState { Ok =0, InvalidValue =1, InvalidPrice =2, InvalidTime =3 } |
Properties inherited from MOVoucherAbstract | |
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 MOVoucherAudit
Referenced by fromString(), and fromXml().
MOVoucherAudit::MOVoucherAudit | ( | const MOVoucherAudit & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_audittime, mp_audittransaction, mp_audituname, and mp_comment.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setaudittime(), setaudittransaction(), setaudituname(), and setcomment().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
static |
create MOVoucherAudit from XML formatted string (inverse of toString)
References MOVoucherAudit().
|
static |
create MOVoucherAudit from XML (inverse of toXml)
References MOVoucherAudit().
MOVoucherAudit & MOVoucherAudit::operator= | ( | const MOVoucherAudit & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_audittime, mp_audittransaction, mp_audituname, mp_comment, and MOVoucherAbstract::operator=().
|
inlinevirtual |
Referenced by MOVoucherAudit().
|
inlinevirtual |
Referenced by MOVoucherAudit().
|
inlinevirtual |
Referenced by MOVoucherAudit().
|
inlinevirtual |
Referenced by MOVoucherAudit().
QString MOVoucherAudit::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOVoucherAudit::toXml | ( | QDomDocument & | doc, |
QString | name = "VoucherAudit" |
||
) |
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 "MOVoucherAudit" is used |
Referenced by toString().
void MOVoucherAudit::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_audittime, mp_audittransaction, mp_audituname, mp_comment, and MOVoucherAbstract::toXml().
|
protected |
Referenced by MOVoucherAudit(), operator=(), and toXml().
|
protected |
Referenced by MOVoucherAudit(), operator=(), and toXml().
|
protected |
Referenced by MOVoucherAudit(), operator=(), and toXml().
|
protected |
Referenced by MOVoucherAudit(), operator=(), and toXml().