MagicSmoke
$VERSION$
|
This class represents an order in its entirety, including any items sold in it. More...
#include <srcMOOrderAbstract.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 | |
MOOrderAbstract () | |
default constructor: constructs an invalid instance of MOOrderAbstract More... | |
MOOrderAbstract (const MOOrderAbstract &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOOrderAbstract (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOOrderAbstract () |
destructor: deletes this copy of the object More... | |
virtual void | additems (Nullable< MOItemInfo > a) |
virtual void | addtickets (Nullable< MOTicket > a) |
virtual void | addvouchers (Nullable< MOVoucher > a) |
virtual Nullable< qint64 > | amountdue () const |
amount that needs to be paid, negative if too much has been paid More... | |
virtual Nullable< qint64 > | amountpaid () const |
amount that has been paid for this order More... | |
virtual void | clearitems () |
virtual void | cleartickets () |
virtual void | clearvouchers () |
virtual Nullable< QString > | comments () const |
virtual Nullable< QString > | coupondescription () const |
virtual Nullable< QString > | couponid () const |
virtual Nullable< MOCustomerInfo > | customer () const |
virtual Nullable< qint64 > | customerid () const |
virtual Nullable< MOAddress > | deliveryaddress () const |
virtual Nullable< qint64 > | deliveryaddressid () const |
virtual Nullable< MOAddress > | invoiceaddress () const |
virtual Nullable< qint64 > | invoiceaddressid () const |
virtual QList< MOItemInfo > | items () const |
MOOrderAbstract & | operator= (const MOOrderAbstract &) |
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 | setamountpaid (Nullable< qint64 > s) |
amount that has been paid for this order More... | |
virtual void | setcomments (Nullable< QString > s) |
virtual void | setcoupondescription (Nullable< QString > s) |
virtual void | setcouponid (Nullable< QString > s) |
virtual void | setcustomer (Nullable< MOCustomerInfo > s) |
virtual void | setcustomerid (Nullable< qint64 > s) |
virtual void | setdeliveryaddress (Nullable< MOAddress > s) |
virtual void | setdeliveryaddressid (Nullable< qint64 > s) |
virtual void | setinvoiceaddress (Nullable< MOAddress > s) |
virtual void | setinvoiceaddressid (Nullable< qint64 > s) |
virtual void | setitems (QList< MOItemInfo > 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 | setshippingtype (Nullable< MOShipping > s) |
virtual void | setshippingtypeid (Nullable< qint64 > s) |
virtual void | setsoldby (Nullable< QString > s) |
virtual void | setstatus (Nullable< OrderState > s) |
virtual void | settags (Nullable< QString > s) |
virtual void | settickets (QList< MOTicket > s) |
virtual void | settotalprice (Nullable< qint64 > s) |
total price for this order (including shipping and all items) More... | |
virtual void | setvouchers (QList< MOVoucher > s) |
virtual Nullable< qint64 > | shippingcosts () const |
costs for shipping More... | |
virtual Nullable< MOShipping > | shippingtype () const |
virtual Nullable< qint64 > | shippingtypeid () const |
virtual Nullable< QString > | soldby () const |
virtual Nullable< OrderState > | status () const |
virtual Nullable< QString > | tags () const |
virtual QList< MOTicket > | tickets () 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="Order") |
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 QList< MOVoucher > | vouchers () const |
Static Public Member Functions | |
static MOOrderAbstract | fromString (const QString &) |
create MOOrderAbstract from XML formatted string (inverse of toString) More... | |
static MOOrderAbstract | fromXml (const QDomElement &) |
create MOOrderAbstract 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_amountpaid |
Nullable< QString > | mp_comments |
Nullable< QString > | mp_coupondescription |
Nullable< QString > | mp_couponid |
Nullable< MOCustomerInfo > | mp_customer |
Nullable< qint64 > | mp_customerid |
Nullable< MOAddress > | mp_deliveryaddress |
Nullable< qint64 > | mp_deliveryaddressid |
Nullable< MOAddress > | mp_invoiceaddress |
Nullable< qint64 > | mp_invoiceaddressid |
QList< MOItemInfo > | mp_items |
Nullable< qint64 > | mp_orderid |
Nullable< qint64 > | mp_ordertime |
Nullable< qint64 > | mp_senttime |
Nullable< qint64 > | mp_shippingcosts |
Nullable< MOShipping > | mp_shippingtype |
Nullable< qint64 > | mp_shippingtypeid |
Nullable< QString > | mp_soldby |
Nullable< OrderState > | mp_status |
Nullable< QString > | mp_tags |
QList< MOTicket > | mp_tickets |
Nullable< qint64 > | mp_totalprice |
QList< MOVoucher > | mp_vouchers |
Properties | |
Nullable< qint64 > | amountdue |
amount that needs to be paid, negative if too much has been paid More... | |
Nullable< qint64 > | amountpaid |
amount that has been paid for this order More... | |
Nullable< QString > | comments |
Nullable< QString > | coupondescription |
Nullable< QString > | couponid |
Nullable< MOCustomerInfo > | customer |
Nullable< qint64 > | customerid |
Nullable< MOAddress > | deliveryaddress |
Nullable< qint64 > | deliveryaddressid |
Nullable< MOAddress > | invoiceaddress |
Nullable< qint64 > | invoiceaddressid |
QList< MOItemInfo > | items |
Nullable< qint64 > | orderid |
Nullable< qint64 > | ordertime |
Nullable< qint64 > | senttime |
Nullable< qint64 > | shippingcosts |
costs for shipping More... | |
Nullable< MOShipping > | shippingtype |
Nullable< qint64 > | shippingtypeid |
Nullable< QString > | soldby |
Nullable< OrderState > | status |
Nullable< QString > | tags |
QList< MOTicket > | tickets |
Nullable< qint64 > | totalprice |
total price for this order (including shipping and all items) More... | |
QList< MOVoucher > | vouchers |
This class represents an order in its entirety, including any items sold in it.
Status the order is in right now.
|
inline |
default constructor: constructs an invalid instance of MOOrderAbstract
Referenced by fromString(), and fromXml().
MOOrderAbstract::MOOrderAbstract | ( | const MOOrderAbstract & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_amountdue, mp_amountpaid, mp_comments, mp_coupondescription, mp_couponid, mp_customer, mp_customerid, mp_deliveryaddress, mp_deliveryaddressid, mp_invoiceaddress, mp_invoiceaddressid, mp_items, mp_orderid, mp_ordertime, mp_senttime, mp_shippingcosts, mp_shippingtype, mp_shippingtypeid, mp_soldby, mp_status, mp_tags, mp_tickets, mp_totalprice, and mp_vouchers.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References additems(), addtickets(), addvouchers(), setamountdue(), setamountpaid(), setcomments(), setcoupondescription(), setcouponid(), setcustomer(), setcustomerid(), setdeliveryaddress(), setdeliveryaddressid(), setinvoiceaddress(), setinvoiceaddressid(), setorderid(), setordertime(), setsenttime(), setshippingcosts(), setshippingtype(), setshippingtypeid(), setsoldby(), setstatus(), settags(), settotalprice(), and str2OrderState().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
amount that needs to be paid, negative if too much has been paid
|
inlinevirtual |
amount that has been paid for this order
Referenced by MOOrder::amountPaidString().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Referenced by MOOrder::fullDeliveryAddress(), and MOOrder::fullInvoiceAddress().
|
inlinevirtual |
|
inlinevirtual |
Referenced by MOOrder::fullDeliveryAddress(), and MOOrder::fullInvoiceAddress().
|
inlinevirtual |
|
static |
create MOOrderAbstract from XML formatted string (inverse of toString)
References MOOrderAbstract().
|
static |
create MOOrderAbstract from XML (inverse of toXml)
References MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrder::fullDeliveryAddress(), and MOOrder::fullInvoiceAddress().
|
inlinevirtual |
|
inlinevirtual |
|
static |
MOOrderAbstract & MOOrderAbstract::operator= | ( | const MOOrderAbstract & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_amountdue, mp_amountpaid, mp_comments, mp_coupondescription, mp_couponid, mp_customer, mp_customerid, mp_deliveryaddress, mp_deliveryaddressid, mp_invoiceaddress, mp_invoiceaddressid, mp_items, mp_orderid, mp_ordertime, mp_senttime, mp_shippingcosts, mp_shippingtype, mp_shippingtypeid, mp_soldby, mp_status, mp_tags, mp_tickets, mp_totalprice, and mp_vouchers.
|
inlinevirtual |
Referenced by MOOrder::isValid().
|
static |
|
static |
|
inlinevirtual |
Referenced by MOOrder::orderDateTime().
MOOrderAbstract::Q_ENUMS | ( | OrderState | ) |
|
inlinevirtual |
|
inlinevirtual |
amount that needs to be paid, negative if too much has been paid
Referenced by MOOrderAbstract().
|
inlinevirtual |
amount that has been paid for this order
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
costs for shipping
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
Referenced by MOOrderAbstract().
|
inlinevirtual |
|
inlinevirtual |
total price for this order (including shipping and all items)
Referenced by MOOrderAbstract().
|
inlinevirtual |
|
inlinevirtual |
costs for shipping
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Referenced by MOOrder::isReservation(), and MOOrder::orderStatusString().
|
static |
|
inlinevirtual |
|
inlinevirtual |
QString MOOrderAbstract::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 MOOrder::totalPriceString().
QDomElement MOOrderAbstract::toXml | ( | QDomDocument & | doc, |
QString | name = "Order" |
||
) |
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 "MOOrderAbstract" is used |
Referenced by toString(), and toXml().
void MOOrderAbstract::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_amountdue, mp_amountpaid, mp_comments, mp_coupondescription, mp_couponid, mp_customer, mp_customerid, mp_deliveryaddress, mp_deliveryaddressid, mp_invoiceaddress, mp_invoiceaddressid, mp_items, mp_orderid, mp_ordertime, mp_senttime, mp_shippingcosts, mp_shippingtype, mp_shippingtypeid, mp_soldby, mp_status, mp_tags, mp_tickets, mp_totalprice, mp_vouchers, and toXml().
|
inlinevirtual |
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOOrderAbstract(), operator=(), and toXml().
|
readwrite |
amount that needs to be paid, negative if too much has been paid
|
readwrite |
amount that has been paid for this order
Referenced by MBillRenderer::getVariable().
|
readwrite |
Referenced by MBillRenderer::getVariable().
|
readwrite |
|
readwrite |
|
readwrite |
Referenced by MBillRenderer::getVariable().
|
readwrite |
Referenced by MBillRenderer::getVariable().
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
Referenced by MBillRenderer::getVariable(), and MOrderWindow::MOrderWindow().
|
readwrite |
Referenced by MBillRenderer::getVariable().
|
readwrite |
Referenced by MBillRenderer::getVariable().
|
readwrite |
costs for shipping
Referenced by MBillRenderer::getVariable().
|
readwrite |
Referenced by MBillRenderer::getVariable().
|
readwrite |
|
readwrite |
Referenced by MBillRenderer::getVariable().
|
readwrite |
|
readwrite |
|
readwrite |
Referenced by MBillRenderer::MBillRenderer().
|
readwrite |
total price for this order (including shipping and all items)
Referenced by MBillRenderer::getVariable().
|
readwrite |
Referenced by MBillRenderer::MBillRenderer().