|
MagicSmoke
$VERSION$
|
The cart as used by the web user interface, this maps into the cart tables. This class is never used by the remote client. More...
#include <srcMOWebCart.h>
Public Member Functions | |
| MOWebCart () | |
| default constructor: constructs an invalid instance of MOWebCart More... | |
| MOWebCart (const MOWebCart &) | |
| copy constructor: creates a (deep) copy of the object More... | |
| MOWebCart (const QDomElement &) | |
| special constructor: create from the XML representation, deserializing the object More... | |
| virtual | ~MOWebCart () |
| 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< QString > | cartid () const |
| The cart ID of this session. More... | |
| virtual void | clearitems () |
| virtual void | cleartickets () |
| virtual void | clearvouchers () |
| virtual Nullable< QString > | comment () const |
| optional comments from the customer More... | |
| virtual Nullable< MOCoupon > | coupon () const |
| virtual Nullable< QString > | couponid () const |
| An optional coupon code to be used in this order. More... | |
| virtual Nullable< MOCustomer > | customer () const |
| The customer of this cart. More... | |
| virtual Nullable< qint64 > | customerid () const |
| The customer of this cart. More... | |
| virtual Nullable< MOAddress > | deliveryaddress () const |
| The address to deliver to (mandatory) More... | |
| virtual Nullable< qint64 > | deliveryaddressid () const |
| The address to deliver to (mandatory) More... | |
| virtual Nullable< MOAddress > | invoiceaddress () const |
| The address to send the invoice to if different from the delivery address (optional) More... | |
| virtual Nullable< qint64 > | invoiceaddressid () const |
| The address to send the invoice to if different from the delivery address (optional) More... | |
| virtual QList< MOCartItem > | items () const |
| shop items inside this cart as seen in the DB More... | |
| MOWebCart & | operator= (const MOWebCart &) |
| copy assignment: creates a (deep) copy of the object More... | |
| virtual void | setcartid (Nullable< QString > s) |
| The cart ID of this session. More... | |
| virtual void | setcomment (Nullable< QString > s) |
| optional comments from the customer More... | |
| virtual void | setcoupon (Nullable< MOCoupon > s) |
| virtual void | setcouponid (Nullable< QString > s) |
| An optional coupon code to be used in this order. More... | |
| virtual void | setcustomer (Nullable< MOCustomer > s) |
| The customer of this cart. More... | |
| virtual void | setcustomerid (Nullable< qint64 > s) |
| The customer of this cart. More... | |
| virtual void | setdeliveryaddress (Nullable< MOAddress > s) |
| The address to deliver to (mandatory) More... | |
| virtual void | setdeliveryaddressid (Nullable< qint64 > s) |
| The address to deliver to (mandatory) More... | |
| virtual void | setinvoiceaddress (Nullable< MOAddress > s) |
| The address to send the invoice to if different from the delivery address (optional) More... | |
| virtual void | setinvoiceaddressid (Nullable< qint64 > s) |
| The address to send the invoice to if different from the delivery address (optional) More... | |
| virtual void | setitems (QList< MOCartItem > s) |
| shop items inside this cart as seen in the DB More... | |
| virtual void | setshipping (Nullable< MOShipping > s) |
| if shipping is set: the shipping type More... | |
| virtual void | setshippingid (Nullable< qint64 > s) |
| optional shipping ID More... | |
| virtual void | settickets (QList< MOCartTicket > s) |
| tickets inside this cart as seen in the DB More... | |
| virtual void | settimeout (Nullable< qint64 > s) |
| When the cart will be automatically deleted. More... | |
| virtual void | setvouchers (QList< MOCartVoucher > s) |
| vouchers inside this cart as seen in the DB More... | |
| virtual Nullable< MOShipping > | shipping () const |
| if shipping is set: the shipping type More... | |
| virtual Nullable< qint64 > | shippingid () const |
| optional shipping ID More... | |
| virtual QList< MOCartTicket > | tickets () const |
| tickets inside this cart as seen in the DB More... | |
| virtual Nullable< qint64 > | timeout () const |
| When the cart will be automatically deleted. More... | |
| QString | toString () |
| Serializes the object to XML and returns the string representation of that XML. More... | |
| QDomElement | toXml (QDomDocument &doc, QString name="WebCart") |
| 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 |
| vouchers inside this cart as seen in the DB More... | |
Static Public Member Functions | |
| static MOWebCart | fromString (const QString &) |
| create MOWebCart from XML formatted string (inverse of toString) More... | |
| static MOWebCart | fromXml (const QDomElement &) |
| create MOWebCart from XML (inverse of toXml) More... | |
Protected Attributes | |
| Nullable< QString > | mp_cartid |
| Nullable< QString > | mp_comment |
| Nullable< MOCoupon > | mp_coupon |
| Nullable< QString > | mp_couponid |
| Nullable< MOCustomer > | mp_customer |
| Nullable< qint64 > | mp_customerid |
| Nullable< MOAddress > | mp_deliveryaddress |
| Nullable< qint64 > | mp_deliveryaddressid |
| Nullable< MOAddress > | mp_invoiceaddress |
| Nullable< qint64 > | mp_invoiceaddressid |
| QList< MOCartItem > | mp_items |
| Nullable< MOShipping > | mp_shipping |
| Nullable< qint64 > | mp_shippingid |
| QList< MOCartTicket > | mp_tickets |
| Nullable< qint64 > | mp_timeout |
| QList< MOCartVoucher > | mp_vouchers |
The cart as used by the web user interface, this maps into the cart tables. This class is never used by the remote client.
|
inline |
default constructor: constructs an invalid instance of MOWebCart
Referenced by fromString(), and fromXml().
| MOWebCart::MOWebCart | ( | const MOWebCart & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_cartid, mp_comment, mp_coupon, mp_couponid, mp_customer, mp_customerid, mp_deliveryaddress, mp_deliveryaddressid, mp_invoiceaddress, mp_invoiceaddressid, mp_items, mp_shipping, mp_shippingid, mp_tickets, mp_timeout, and mp_vouchers.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References additems(), addtickets(), addvouchers(), setcartid(), setcomment(), setcoupon(), setcouponid(), setcustomer(), setcustomerid(), setdeliveryaddress(), setdeliveryaddressid(), setinvoiceaddress(), setinvoiceaddressid(), setshipping(), setshippingid(), and settimeout().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
Referenced by MOWebCart().
|
inlinevirtual |
Referenced by MOWebCart().
|
inlinevirtual |
Referenced by MOWebCart().
|
inlinevirtual |
The cart ID of this session.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
optional comments from the customer
|
inlinevirtual |
|
inlinevirtual |
An optional coupon code to be used in this order.
|
inlinevirtual |
The customer of this cart.
|
inlinevirtual |
The customer of this cart.
|
inlinevirtual |
The address to deliver to (mandatory)
|
inlinevirtual |
The address to deliver to (mandatory)
|
static |
create MOWebCart from XML formatted string (inverse of toString)
References MOWebCart().
|
static |
create MOWebCart from XML (inverse of toXml)
References MOWebCart().
|
inlinevirtual |
The address to send the invoice to if different from the delivery address (optional)
|
inlinevirtual |
The address to send the invoice to if different from the delivery address (optional)
|
inlinevirtual |
shop items inside this cart as seen in the DB
copy assignment: creates a (deep) copy of the object
References mp_cartid, mp_comment, mp_coupon, mp_couponid, mp_customer, mp_customerid, mp_deliveryaddress, mp_deliveryaddressid, mp_invoiceaddress, mp_invoiceaddressid, mp_items, mp_shipping, mp_shippingid, mp_tickets, mp_timeout, and mp_vouchers.
|
inlinevirtual |
The cart ID of this session.
Referenced by MOWebCart().
|
inlinevirtual |
optional comments from the customer
Referenced by MOWebCart().
|
inlinevirtual |
Referenced by MOWebCart().
|
inlinevirtual |
An optional coupon code to be used in this order.
Referenced by MOWebCart().
|
inlinevirtual |
The customer of this cart.
Referenced by MOWebCart().
|
inlinevirtual |
The customer of this cart.
Referenced by MOWebCart().
|
inlinevirtual |
The address to deliver to (mandatory)
Referenced by MOWebCart().
|
inlinevirtual |
The address to deliver to (mandatory)
Referenced by MOWebCart().
|
inlinevirtual |
The address to send the invoice to if different from the delivery address (optional)
Referenced by MOWebCart().
|
inlinevirtual |
The address to send the invoice to if different from the delivery address (optional)
Referenced by MOWebCart().
|
inlinevirtual |
shop items inside this cart as seen in the DB
|
inlinevirtual |
if shipping is set: the shipping type
Referenced by MOWebCart().
|
inlinevirtual |
optional shipping ID
Referenced by MOWebCart().
|
inlinevirtual |
tickets inside this cart as seen in the DB
|
inlinevirtual |
When the cart will be automatically deleted.
Referenced by MOWebCart().
|
inlinevirtual |
vouchers inside this cart as seen in the DB
|
inlinevirtual |
if shipping is set: the shipping type
|
inlinevirtual |
optional shipping ID
|
inlinevirtual |
tickets inside this cart as seen in the DB
|
inlinevirtual |
When the cart will be automatically deleted.
| QString MOWebCart::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
| QDomElement MOWebCart::toXml | ( | QDomDocument & | doc, |
| QString | name = "WebCart" |
||
| ) |
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 "MOWebCart" is used |
Referenced by toString(), and toXml().
| void MOWebCart::toXml | ( | QDomDocument & | doc, |
| QDomElement & | r | ||
| ) |
Serializes the object into the given element.
References mp_cartid, mp_comment, mp_coupon, mp_couponid, mp_customer, mp_customerid, mp_deliveryaddress, mp_deliveryaddressid, mp_invoiceaddress, mp_invoiceaddressid, mp_items, mp_shipping, mp_shippingid, mp_tickets, mp_timeout, mp_vouchers, and toXml().
|
inlinevirtual |
vouchers inside this cart as seen in the DB
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().
|
protected |
Referenced by MOWebCart(), operator=(), and toXml().