|
MagicSmoke
$VERSION$
|
This class represents the main information about an order as shown in lists. More...
#include <srcMOOrderInfoAbstract.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 | |
| MOOrderInfoAbstract () | |
| default constructor: constructs an invalid instance of MOOrderInfoAbstract More... | |
| MOOrderInfoAbstract (const MOOrderInfoAbstract &) | |
| copy constructor: creates a (deep) copy of the object More... | |
| MOOrderInfoAbstract (const QDomElement &) | |
| special constructor: create from the XML representation, deserializing the object More... | |
| virtual | ~MOOrderInfoAbstract () |
| destructor: deletes this copy of the object More... | |
| virtual Nullable< qint64 > | amountdue () const |
| amount that needs to be paid, negative if too much has been paid More... | |
| virtual Nullable< qint64 > | amountitems () const |
| virtual Nullable< qint64 > | amountpaid () const |
| amount that has been paid for this order More... | |
| virtual Nullable< qint64 > | amounttickets () const |
| virtual Nullable< qint64 > | amountvouchers () const |
| virtual Nullable< QString > | couponid () const |
| virtual Nullable< qint64 > | customerid () const |
| MOOrderInfoAbstract & | operator= (const MOOrderInfoAbstract &) |
| copy assignment: creates a (deep) copy of the object More... | |
| virtual Nullable< qint64 > | orderid () const |
| virtual Nullable< qint64 > | ordertime () const |
| Q_ENUMS (OrderState) | |
| virtual Nullable< qint64 > | senttime () const |
| virtual void | setamountdue (Nullable< qint64 > s) |
| amount that needs to be paid, negative if too much has been paid More... | |
| virtual void | setamountitems (Nullable< qint64 > s) |
| virtual void | setamountpaid (Nullable< qint64 > s) |
| amount that has been paid for this order More... | |
| virtual void | setamounttickets (Nullable< qint64 > s) |
| virtual void | setamountvouchers (Nullable< qint64 > s) |
| virtual void | setcouponid (Nullable< QString > s) |
| virtual void | setcustomerid (Nullable< qint64 > s) |
| virtual void | setorderid (Nullable< qint64 > s) |
| virtual void | setordertime (Nullable< qint64 > s) |
| virtual void | setsenttime (Nullable< qint64 > s) |
| virtual void | setshippingcosts (Nullable< qint64 > s) |
| costs for shipping More... | |
| virtual void | setshippingtypeid (Nullable< qint64 > s) |
| virtual void | setsoldby (Nullable< QString > s) |
| virtual void | setstatus (Nullable< OrderState > s) |
| virtual void | settotalprice (Nullable< qint64 > s) |
| total price for this order (including shipping and all items) More... | |
| virtual Nullable< qint64 > | shippingcosts () const |
| costs for shipping More... | |
| virtual Nullable< qint64 > | shippingtypeid () const |
| 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... | |
| virtual Nullable< qint64 > | totalprice () const |
| total price for this order (including shipping and all items) More... | |
| QDomElement | toXml (QDomDocument &doc, QString name="OrderInfo") |
| 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 MOOrderInfoAbstract | fromString (const QString &) |
| create MOOrderInfoAbstract from XML formatted string (inverse of toString) More... | |
| static MOOrderInfoAbstract | fromXml (const QDomElement &) |
| create MOOrderInfoAbstract 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_amountdue |
| Nullable< qint64 > | mp_amountitems |
| Nullable< qint64 > | mp_amountpaid |
| Nullable< qint64 > | mp_amounttickets |
| Nullable< qint64 > | mp_amountvouchers |
| Nullable< QString > | mp_couponid |
| Nullable< qint64 > | mp_customerid |
| Nullable< qint64 > | mp_orderid |
| Nullable< qint64 > | mp_ordertime |
| Nullable< qint64 > | mp_senttime |
| Nullable< qint64 > | mp_shippingcosts |
| Nullable< qint64 > | mp_shippingtypeid |
| Nullable< QString > | mp_soldby |
| Nullable< OrderState > | mp_status |
| Nullable< qint64 > | mp_totalprice |
Properties | |
| Nullable< qint64 > | amountdue |
| amount that needs to be paid, negative if too much has been paid More... | |
| Nullable< qint64 > | amountitems |
| Nullable< qint64 > | amountpaid |
| amount that has been paid for this order More... | |
| Nullable< qint64 > | amounttickets |
| Nullable< qint64 > | amountvouchers |
| Nullable< QString > | couponid |
| Nullable< qint64 > | customerid |
| Nullable< qint64 > | orderid |
| Nullable< qint64 > | ordertime |
| Nullable< qint64 > | senttime |
| Nullable< qint64 > | shippingcosts |
| costs for shipping More... | |
| Nullable< qint64 > | shippingtypeid |
| Nullable< QString > | soldby |
| Nullable< OrderState > | status |
| Nullable< qint64 > | totalprice |
| total price for this order (including shipping and all items) More... | |
This class represents the main information about an order as shown in lists.
Status the order is in right now.
|
inline |
default constructor: constructs an invalid instance of MOOrderInfoAbstract
Referenced by fromString(), and fromXml().
| MOOrderInfoAbstract::MOOrderInfoAbstract | ( | const MOOrderInfoAbstract & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_amountdue, mp_amountitems, mp_amountpaid, mp_amounttickets, mp_amountvouchers, mp_couponid, mp_customerid, mp_orderid, mp_ordertime, mp_senttime, mp_shippingcosts, mp_shippingtypeid, mp_soldby, mp_status, and mp_totalprice.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setamountdue(), setamountitems(), setamountpaid(), setamounttickets(), setamountvouchers(), setcouponid(), setcustomerid(), setorderid(), setordertime(), setsenttime(), setshippingcosts(), setshippingtypeid(), setsoldby(), setstatus(), settotalprice(), and str2OrderState().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
amount that needs to be paid, negative if too much has been paid
Referenced by MOOrderInfo::amountDueString().
|
inlinevirtual |
|
inlinevirtual |
amount that has been paid for this order
Referenced by MOOrderInfo::amountPaidString(), MOOrderInfo::needsPayment(), and MOOrderInfo::needsRefund().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
static |
create MOOrderInfoAbstract from XML formatted string (inverse of toString)
References MOOrderInfoAbstract().
|
static |
create MOOrderInfoAbstract from XML (inverse of toXml)
References MOOrderInfoAbstract().
|
static |
| MOOrderInfoAbstract & MOOrderInfoAbstract::operator= | ( | const MOOrderInfoAbstract & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_amountdue, mp_amountitems, mp_amountpaid, mp_amounttickets, mp_amountvouchers, mp_couponid, mp_customerid, mp_orderid, mp_ordertime, mp_senttime, mp_shippingcosts, mp_shippingtypeid, mp_soldby, mp_status, and mp_totalprice.
|
inlinevirtual |
|
static |
|
static |
|
inlinevirtual |
| MOOrderInfoAbstract::Q_ENUMS | ( | OrderState | ) |
|
inlinevirtual |
|
inlinevirtual |
amount that needs to be paid, negative if too much has been paid
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
amount that has been paid for this order
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
costs for shipping
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
total price for this order (including shipping and all items)
Referenced by MOOrderInfoAbstract().
|
inlinevirtual |
costs for shipping
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
static |
| QString MOOrderInfoAbstract::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
|
inlinevirtual |
total price for this order (including shipping and all items)
Referenced by MOOrderInfo::needsPayment(), MOOrderInfo::needsRefund(), and MOOrderInfo::totalPriceString().
| QDomElement MOOrderInfoAbstract::toXml | ( | QDomDocument & | doc, |
| QString | name = "OrderInfo" |
||
| ) |
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 "MOOrderInfoAbstract" is used |
Referenced by toString().
| void MOOrderInfoAbstract::toXml | ( | QDomDocument & | doc, |
| QDomElement & | r | ||
| ) |
Serializes the object into the given element.
References mp_amountdue, mp_amountitems, mp_amountpaid, mp_amounttickets, mp_amountvouchers, mp_couponid, mp_customerid, mp_orderid, mp_ordertime, mp_senttime, mp_shippingcosts, mp_shippingtypeid, mp_soldby, mp_status, and mp_totalprice.
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderInfoAbstract(), operator=(), and toXml().
|
readwrite |
amount that needs to be paid, negative if too much has been paid
|
readwrite |
|
readwrite |
amount that has been paid for this order
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
costs for shipping
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
total price for this order (including shipping and all items)