MagicSmoke
$VERSION$
|
The cart as used from the remote (non-web) system, this is a transaction object, it has no equivalent inside the database. More...
#include <srcMOCartOrder.h>
Public Types | |
enum | ValidationState { Ok =0, Invalid =1 } |
Public Member Functions | |
MOCartOrder () | |
default constructor: constructs an invalid instance of MOCartOrder More... | |
MOCartOrder (const MOCartOrder &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOCartOrder (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOCartOrder () |
destructor: deletes this copy of the object More... | |
virtual void | additems (Nullable< MOCartItem > a) |
virtual void | addtickets (Nullable< MOCartTicket > a) |
virtual void | addvouchers (Nullable< MOCartVoucher > a) |
virtual Nullable< qint64 > | cartid () const |
optional ID for the cart itself, the calling process can use this to distinguish different carts, the server must preserve it between input and output More... | |
virtual void | clearitems () |
virtual void | cleartickets () |
virtual void | clearvouchers () |
virtual Nullable< QString > | comment () const |
virtual Nullable< QString > | couponid () const |
An optional coupon code to be used in this order. More... | |
virtual Nullable< qint64 > | customerid () const |
virtual Nullable< qint64 > | deliveryaddressid () const |
virtual Nullable< qint64 > | invoiceaddressid () const |
virtual QList< MOCartItem > | items () const |
MOCartOrder & | operator= (const MOCartOrder &) |
copy assignment: creates a (deep) copy of the object More... | |
Q_ENUMS (ValidationState) | |
virtual void | setcartid (Nullable< qint64 > s) |
optional ID for the cart itself, the calling process can use this to distinguish different carts, the server must preserve it between input and output More... | |
virtual void | setcomment (Nullable< QString > s) |
virtual void | setcouponid (Nullable< QString > s) |
An optional coupon code to be used in this order. More... | |
virtual void | setcustomerid (Nullable< qint64 > s) |
virtual void | setdeliveryaddressid (Nullable< qint64 > s) |
virtual void | setinvoiceaddressid (Nullable< qint64 > s) |
virtual void | setitems (QList< MOCartItem > s) |
virtual void | setshippingtypeid (Nullable< qint64 > s) |
virtual void | setstatus (Nullable< ValidationState > s) |
set by the server to reflect the processing state of the cart More... | |
virtual void | settickets (QList< MOCartTicket > s) |
virtual void | setvouchers (QList< MOCartVoucher > s) |
virtual Nullable< qint64 > | shippingtypeid () const |
virtual Nullable< ValidationState > | status () const |
set by the server to reflect the processing state of the cart More... | |
virtual QList< MOCartTicket > | tickets () const |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="CartOrder") |
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< MOCartVoucher > | vouchers () const |
Static Public Member Functions | |
static MOCartOrder | fromString (const QString &) |
create MOCartOrder from XML formatted string (inverse of toString) More... | |
static MOCartOrder | fromXml (const QDomElement &) |
create MOCartOrder from XML (inverse of toXml) More... | |
static ValidationState | locstr2ValidationState (QString, bool *ok=0) |
Converts a localized string into the corresponding enum ValidationState value. More... | |
static ValidationState | str2ValidationState (QString, bool *ok=0) |
Converts string into the corresponding enum ValidationState value. More... | |
static QString | ValidationState2locstr (ValidationState) |
Converts enum ValidationState value into the corresponding localized string. More... | |
static QString | ValidationState2str (ValidationState) |
Converts enum ValidationState value into the corresponding string. More... | |
Protected Attributes | |
Nullable< qint64 > | mp_cartid |
Nullable< QString > | mp_comment |
Nullable< QString > | mp_couponid |
Nullable< qint64 > | mp_customerid |
Nullable< qint64 > | mp_deliveryaddressid |
Nullable< qint64 > | mp_invoiceaddressid |
QList< MOCartItem > | mp_items |
Nullable< qint64 > | mp_shippingtypeid |
Nullable< ValidationState > | mp_status |
QList< MOCartTicket > | mp_tickets |
QList< MOCartVoucher > | mp_vouchers |
Properties | |
Nullable< qint64 > | cartid |
optional ID for the cart itself, the calling process can use this to distinguish different carts, the server must preserve it between input and output More... | |
Nullable< QString > | comment |
Nullable< QString > | couponid |
An optional coupon code to be used in this order. More... | |
Nullable< qint64 > | customerid |
Nullable< qint64 > | deliveryaddressid |
Nullable< qint64 > | invoiceaddressid |
QList< MOCartItem > | items |
Nullable< qint64 > | shippingtypeid |
Nullable< ValidationState > | status |
set by the server to reflect the processing state of the cart More... | |
QList< MOCartTicket > | tickets |
QList< MOCartVoucher > | vouchers |
The cart as used from the remote (non-web) system, this is a transaction object, it has no equivalent inside the database.
|
inline |
default constructor: constructs an invalid instance of MOCartOrder
Referenced by fromString(), and fromXml().
MOCartOrder::MOCartOrder | ( | const MOCartOrder & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_cartid, mp_comment, mp_couponid, mp_customerid, mp_deliveryaddressid, mp_invoiceaddressid, mp_items, mp_shippingtypeid, mp_status, mp_tickets, and mp_vouchers.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References additems(), addtickets(), addvouchers(), setcartid(), setcomment(), setcouponid(), setcustomerid(), setdeliveryaddressid(), setinvoiceaddressid(), setshippingtypeid(), setstatus(), and str2ValidationState().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
Referenced by MOCartOrder().
|
inlinevirtual |
Referenced by MOCartOrder().
|
inlinevirtual |
Referenced by MOCartOrder().
|
inlinevirtual |
optional ID for the cart itself, the calling process can use this to distinguish different carts, the server must preserve it between input and output
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
An optional coupon code to be used in this order.
|
inlinevirtual |
|
inlinevirtual |
|
static |
create MOCartOrder from XML formatted string (inverse of toString)
References MOCartOrder().
|
static |
create MOCartOrder from XML (inverse of toXml)
References MOCartOrder().
|
inlinevirtual |
|
inlinevirtual |
|
static |
MOCartOrder & MOCartOrder::operator= | ( | const MOCartOrder & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_cartid, mp_comment, mp_couponid, mp_customerid, mp_deliveryaddressid, mp_invoiceaddressid, mp_items, mp_shippingtypeid, mp_status, mp_tickets, and mp_vouchers.
MOCartOrder::Q_ENUMS | ( | ValidationState | ) |
|
inlinevirtual |
optional ID for the cart itself, the calling process can use this to distinguish different carts, the server must preserve it between input and output
Referenced by MOCartOrder().
|
inlinevirtual |
Referenced by MOCartOrder().
|
inlinevirtual |
An optional coupon code to be used in this order.
Referenced by MOCartOrder().
|
inlinevirtual |
Referenced by MOCartOrder().
|
inlinevirtual |
Referenced by MOCartOrder().
|
inlinevirtual |
Referenced by MOCartOrder().
|
inlinevirtual |
|
inlinevirtual |
Referenced by MOCartOrder().
|
inlinevirtual |
set by the server to reflect the processing state of the cart
Referenced by MOCartOrder().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
set by the server to reflect the processing state of the cart
|
static |
Converts string into the corresponding enum ValidationState value.
Referenced by MOCartOrder().
|
inlinevirtual |
QString MOCartOrder::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOCartOrder::toXml | ( | QDomDocument & | doc, |
QString | name = "CartOrder" |
||
) |
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 "MOCartOrder" is used |
Referenced by toString(), and toXml().
void MOCartOrder::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_cartid, mp_comment, mp_couponid, mp_customerid, mp_deliveryaddressid, mp_invoiceaddressid, mp_items, mp_shippingtypeid, mp_status, mp_tickets, mp_vouchers, and toXml().
|
static |
|
static |
|
inlinevirtual |
|
protected |
Referenced by MOCartOrder(), operator=(), and toXml().
|
protected |
Referenced by MOCartOrder(), operator=(), and toXml().
|
protected |
Referenced by MOCartOrder(), operator=(), and toXml().
|
protected |
Referenced by MOCartOrder(), operator=(), and toXml().
|
protected |
Referenced by MOCartOrder(), operator=(), and toXml().
|
protected |
Referenced by MOCartOrder(), operator=(), and toXml().
|
protected |
Referenced by MOCartOrder(), operator=(), and toXml().
|
protected |
Referenced by MOCartOrder(), operator=(), and toXml().
|
protected |
Referenced by MOCartOrder(), operator=(), and toXml().
|
protected |
Referenced by MOCartOrder(), operator=(), and toXml().
|
protected |
Referenced by MOCartOrder(), operator=(), and toXml().
|
readwrite |
optional ID for the cart itself, the calling process can use this to distinguish different carts, the server must preserve it between input and output
|
readwrite |
|
readwrite |
An optional coupon code to be used in this order.
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
set by the server to reflect the processing state of the cart
|
readwrite |
|
readwrite |