MagicSmoke
$VERSION$
|
This class represents the audit information about an order. More...
#include <srcMOOrderAudit.h>
Public Types | |
enum | OrderState { Placed =0, Sent =1, Sold =1, Cancelled =2, Reserved =4, Closed =128 } |
Status the order is in right now. More... | |
Public Member Functions | |
MOOrderAudit () | |
default constructor: constructs an invalid instance of MOOrderAudit More... | |
MOOrderAudit (const MOOrderAudit &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOOrderAudit (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOOrderAudit () |
destructor: deletes this copy of the object More... | |
virtual Nullable< qint64 > | amountpaid () const |
amount that has been paid for this order More... | |
virtual Nullable< qint64 > | audittime () const |
virtual Nullable< QString > | audittransaction () const |
virtual Nullable< QString > | audituname () const |
virtual Nullable< qint64 > | customerid () const |
MOOrderAudit & | operator= (const MOOrderAudit &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual Nullable< qint64 > | orderid () const |
virtual Nullable< qint64 > | ordertime () const |
virtual Nullable< QString > | paydata () const |
virtual Nullable< QString > | paytype () const |
Q_ENUMS (OrderState) | |
virtual Nullable< qint64 > | senttime () const |
virtual void | setamountpaid (Nullable< qint64 > s) |
amount that has been paid for this order More... | |
virtual void | setaudittime (Nullable< qint64 > s) |
virtual void | setaudittransaction (Nullable< QString > s) |
virtual void | setaudituname (Nullable< QString > s) |
virtual void | setcustomerid (Nullable< qint64 > s) |
virtual void | setorderid (Nullable< qint64 > s) |
virtual void | setordertime (Nullable< qint64 > s) |
virtual void | setpaydata (Nullable< QString > s) |
virtual void | setpaytype (Nullable< QString > s) |
virtual void | setsenttime (Nullable< qint64 > s) |
virtual void | setshippingcosts (Nullable< qint64 > s) |
costs for shipping More... | |
virtual void | setsoldby (Nullable< QString > s) |
virtual void | setstatus (Nullable< OrderState > s) |
virtual Nullable< qint64 > | shippingcosts () const |
costs for shipping More... | |
virtual Nullable< QString > | soldby () const |
virtual Nullable< OrderState > | status () const |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="OrderAudit") |
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... | |
Static Public Member Functions | |
static MOOrderAudit | fromString (const QString &) |
create MOOrderAudit from XML formatted string (inverse of toString) More... | |
static MOOrderAudit | fromXml (const QDomElement &) |
create MOOrderAudit from XML (inverse of toXml) More... | |
static OrderState | locstr2OrderState (QString, bool *ok=0) |
Converts a localized string into the corresponding enum OrderState value. More... | |
static QString | OrderState2locstr (OrderState) |
Converts enum OrderState value into the corresponding localized string. More... | |
static QString | OrderState2str (OrderState) |
Converts enum OrderState value into the corresponding string. More... | |
static OrderState | str2OrderState (QString, bool *ok=0) |
Converts string into the corresponding enum OrderState value. More... | |
Protected Attributes | |
Nullable< qint64 > | mp_amountpaid |
Nullable< qint64 > | mp_audittime |
Nullable< QString > | mp_audittransaction |
Nullable< QString > | mp_audituname |
Nullable< qint64 > | mp_customerid |
Nullable< qint64 > | mp_orderid |
Nullable< qint64 > | mp_ordertime |
Nullable< QString > | mp_paydata |
Nullable< QString > | mp_paytype |
Nullable< qint64 > | mp_senttime |
Nullable< qint64 > | mp_shippingcosts |
Nullable< QString > | mp_soldby |
Nullable< OrderState > | mp_status |
Properties | |
Nullable< qint64 > | amountpaid |
amount that has been paid for this order More... | |
Nullable< qint64 > | audittime |
Nullable< QString > | audittransaction |
Nullable< QString > | audituname |
Nullable< qint64 > | customerid |
Nullable< qint64 > | orderid |
Nullable< qint64 > | ordertime |
Nullable< QString > | paydata |
Nullable< QString > | paytype |
Nullable< qint64 > | senttime |
Nullable< qint64 > | shippingcosts |
costs for shipping More... | |
Nullable< QString > | soldby |
Nullable< OrderState > | status |
This class represents the audit information about an order.
Status the order is in right now.
|
inline |
default constructor: constructs an invalid instance of MOOrderAudit
Referenced by fromString(), and fromXml().
MOOrderAudit::MOOrderAudit | ( | const MOOrderAudit & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_amountpaid, mp_audittime, mp_audittransaction, mp_audituname, mp_customerid, mp_orderid, mp_ordertime, mp_paydata, mp_paytype, mp_senttime, mp_shippingcosts, mp_soldby, and mp_status.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setamountpaid(), setaudittime(), setaudittransaction(), setaudituname(), setcustomerid(), setorderid(), setordertime(), setpaydata(), setpaytype(), setsenttime(), setshippingcosts(), setsoldby(), setstatus(), and str2OrderState().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
amount that has been paid for this order
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
static |
create MOOrderAudit from XML formatted string (inverse of toString)
References MOOrderAudit().
|
static |
create MOOrderAudit from XML (inverse of toXml)
References MOOrderAudit().
|
static |
MOOrderAudit & MOOrderAudit::operator= | ( | const MOOrderAudit & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_amountpaid, mp_audittime, mp_audittransaction, mp_audituname, mp_customerid, mp_orderid, mp_ordertime, mp_paydata, mp_paytype, mp_senttime, mp_shippingcosts, mp_soldby, and mp_status.
|
inlinevirtual |
|
static |
|
static |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
MOOrderAudit::Q_ENUMS | ( | OrderState | ) |
|
inlinevirtual |
|
inlinevirtual |
amount that has been paid for this order
Referenced by MOOrderAudit().
|
inlinevirtual |
Referenced by MOOrderAudit().
|
inlinevirtual |
Referenced by MOOrderAudit().
|
inlinevirtual |
Referenced by MOOrderAudit().
|
inlinevirtual |
Referenced by MOOrderAudit().
|
inlinevirtual |
Referenced by MOOrderAudit().
|
inlinevirtual |
Referenced by MOOrderAudit().
|
inlinevirtual |
Referenced by MOOrderAudit().
|
inlinevirtual |
Referenced by MOOrderAudit().
|
inlinevirtual |
Referenced by MOOrderAudit().
|
inlinevirtual |
costs for shipping
Referenced by MOOrderAudit().
|
inlinevirtual |
Referenced by MOOrderAudit().
|
inlinevirtual |
Referenced by MOOrderAudit().
|
inlinevirtual |
costs for shipping
|
inlinevirtual |
|
inlinevirtual |
|
static |
QString MOOrderAudit::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOOrderAudit::toXml | ( | QDomDocument & | doc, |
QString | name = "OrderAudit" |
||
) |
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 "MOOrderAudit" is used |
Referenced by toString().
void MOOrderAudit::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_amountpaid, mp_audittime, mp_audittransaction, mp_audituname, mp_customerid, mp_orderid, mp_ordertime, mp_paydata, mp_paytype, mp_senttime, mp_shippingcosts, mp_soldby, and mp_status.
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAudit(), operator=(), and toXml().
|
readwrite |
amount that has been paid for this order
|
readwrite |
Referenced by MOAItem::auditTime().
|
readwrite |
Referenced by MOAItem::auditTransaction().
|
readwrite |
Referenced by MOAItem::auditUser().
|
readwrite |
|
readwrite |
Referenced by MOAItem::itemID().
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
costs for shipping
|
readwrite |
|
readwrite |