|
MagicSmoke
$VERSION$
|
#include <orderinfo.h>
Public Member Functions | |
| QString | amountDueString () const |
| QString | amountPaidString () const |
| bool | isCancelled () const |
| bool | isPlaced () const |
| bool | isReservation () const |
| bool | isSent () const |
| bool | needsPayment () const |
| bool | needsRefund () const |
| QString | orderStatusString () const |
| QString | totalPriceString () const |
Public Member Functions inherited from MOOrderInfoAbstract | |
| 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... | |
Additional Inherited Members | |
Public Types inherited from MOOrderInfoAbstract | |
| enum | OrderState { Placed =0, Sent =1, Sold =1, Cancelled =2, Reserved =4, Closed =128 } |
| Status the order is in right now. More... | |
Static Public Member Functions inherited from MOOrderInfoAbstract | |
| 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 inherited from MOOrderInfoAbstract | |
| 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 inherited from MOOrderInfoAbstract | |
| 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... | |
|
inline |
References MOOrderInfoAbstract::amountdue(), and cent2str().
|
inline |
References MOOrderInfoAbstract::amountpaid(), and cent2str().
|
inline |
References MOOrderInfoAbstract::Cancelled, and MOOrderInfoAbstract::status().
|
inline |
References MOOrderInfoAbstract::Placed, and MOOrderInfoAbstract::status().
|
inline |
References MOOrderInfoAbstract::Reserved, and MOOrderInfoAbstract::status().
|
inline |
References MOOrderInfoAbstract::Sent, and MOOrderInfoAbstract::status().
|
inline |
References MOOrderInfoAbstract::amountpaid(), and MOOrderInfoAbstract::totalprice().
|
inline |
References MOOrderInfoAbstract::amountpaid(), and MOOrderInfoAbstract::totalprice().
|
inline |
References MOOrderInfoAbstract::OrderState2locstr(), and MOOrderInfoAbstract::status().
|
inline |
References cent2str(), and MOOrderInfoAbstract::totalprice().