MagicSmoke  $VERSION$
srcMOCartOrder.h
Go to the documentation of this file.
1 //BEGIN OF AUTOMATICALLY GENERATED FILE
2 //DO NOT EDIT THIS FILE DIRECTLY, USE THE XML SOURCE!
3 #ifndef WOBGEN_MOCartOrder
4 #define WOBGEN_MOCartOrder
5 
6 
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
9 #endif
10 
11 #include "WObject"
12 #include <QCoreApplication>
13 
14 #include "MOCartTicket"
15 #include "MOCartVoucher"
16 #include "MOCartItem"
19 {
20  Q_GADGET
21  public:
22  Q_ENUMS(ValidationState);
26  Ok=0,
28  Invalid=1
29  };
31  static ValidationState str2ValidationState(QString,bool*ok=0);
33  static QString ValidationState2str(ValidationState);
35  static ValidationState locstr2ValidationState(QString,bool*ok=0);
37  static QString ValidationState2locstr(ValidationState);
39  Q_PROPERTY(Nullable<qint64> cartid READ cartid WRITE setcartid)
41  Q_PROPERTY(Nullable<ValidationState> status READ status WRITE setstatus)
43  Q_PROPERTY(Nullable<qint64> customerid READ customerid WRITE setcustomerid)
45  Q_PROPERTY(Nullable<qint64> invoiceaddressid READ invoiceaddressid WRITE setinvoiceaddressid)
47  Q_PROPERTY(Nullable<qint64> deliveryaddressid READ deliveryaddressid WRITE setdeliveryaddressid)
49  Q_PROPERTY(Nullable<QString> comment READ comment WRITE setcomment)
51  Q_PROPERTY(Nullable<qint64> shippingtypeid READ shippingtypeid WRITE setshippingtypeid)
53  Q_PROPERTY(QList<MOCartTicket> tickets READ tickets WRITE settickets)
55  Q_PROPERTY(QList<MOCartVoucher> vouchers READ vouchers WRITE setvouchers)
57  Q_PROPERTY(QList<MOCartItem> items READ items WRITE setitems)
59  Q_PROPERTY(Nullable<QString> couponid READ couponid WRITE setcouponid)
60  protected:
61  Nullable<qint64> mp_cartid;
62  Nullable<ValidationState> mp_status;
63  Nullable<qint64> mp_customerid;
64  Nullable<qint64> mp_invoiceaddressid;
65  Nullable<qint64> mp_deliveryaddressid;
66  Nullable<QString> mp_comment;
67  Nullable<qint64> mp_shippingtypeid;
68  QList<MOCartTicket> mp_tickets;
69  QList<MOCartVoucher> mp_vouchers;
70  QList<MOCartItem> mp_items;
71  Nullable<QString> mp_couponid;
72  public:
74  virtual Nullable<qint64> cartid()const{return mp_cartid;}
76  virtual Nullable<ValidationState> status()const{return mp_status;}
78  virtual Nullable<qint64> customerid()const{return mp_customerid;}
80  virtual Nullable<qint64> invoiceaddressid()const{return mp_invoiceaddressid;}
82  virtual Nullable<qint64> deliveryaddressid()const{return mp_deliveryaddressid;}
84  virtual Nullable<QString> comment()const{return mp_comment;}
86  virtual Nullable<qint64> shippingtypeid()const{return mp_shippingtypeid;}
88  virtual QList<MOCartTicket> tickets()const{return mp_tickets;}
90  virtual QList<MOCartVoucher> vouchers()const{return mp_vouchers;}
92  virtual QList<MOCartItem> items()const{return mp_items;}
94  virtual Nullable<QString> couponid()const{return mp_couponid;}
96  virtual void setcartid(Nullable<qint64> s){mp_cartid=s;}
98  virtual void setstatus(Nullable<ValidationState> s){mp_status=s;}
100  virtual void setcustomerid(Nullable<qint64> s){mp_customerid=s;}
102  virtual void setinvoiceaddressid(Nullable<qint64> s){mp_invoiceaddressid=s;}
104  virtual void setdeliveryaddressid(Nullable<qint64> s){mp_deliveryaddressid=s;}
106  virtual void setcomment(Nullable<QString> s){mp_comment=s;}
108  virtual void setshippingtypeid(Nullable<qint64> s){mp_shippingtypeid=s;}
110  virtual void settickets(QList<MOCartTicket> s){mp_tickets=s;}
111  virtual void cleartickets(){mp_tickets.clear();}
112  virtual void addtickets(Nullable<MOCartTicket> a){mp_tickets.append(a);}
114  virtual void setvouchers(QList<MOCartVoucher> s){mp_vouchers=s;}
115  virtual void clearvouchers(){mp_vouchers.clear();}
116  virtual void addvouchers(Nullable<MOCartVoucher> a){mp_vouchers.append(a);}
118  virtual void setitems(QList<MOCartItem> s){mp_items=s;}
119  virtual void clearitems(){mp_items.clear();}
120  virtual void additems(Nullable<MOCartItem> a){mp_items.append(a);}
122  virtual void setcouponid(Nullable<QString> s){mp_couponid=s;}
123  public:
125  QString toString();
129  QDomElement toXml(QDomDocument&doc,QString name="CartOrder");
131  void toXml(QDomDocument&,QDomElement&);
132  public:
134  MOCartOrder():WObject(){}
136  MOCartOrder(const MOCartOrder&);
138  MOCartOrder& operator=(const MOCartOrder&);
140  explicit MOCartOrder(const QDomElement&);
142  static MOCartOrder fromXml(const QDomElement&);
144  static MOCartOrder fromString(const QString&);
146  virtual ~MOCartOrder(){}
147 
148 };
150 Q_DECLARE_METATYPE(QList<MOCartOrder::ValidationState>)
154 
155 //END OF AUTOMATICALLY GENERATED FILE
156 #endif
Definition: srcMOCartItem.h:14
virtual Nullable< QString > comment() const
Definition: srcMOCartOrder.h:84
virtual QList< MOCartItem > items() const
Definition: srcMOCartOrder.h:92
Encapsulates tickets for a specific event in a specific price category as they are stored in the cart...
Definition: srcMOCartTicket.h:18
virtual QList< MOCartVoucher > vouchers() const
Definition: srcMOCartOrder.h:90
virtual void setvouchers(QList< MOCartVoucher > s)
Definition: srcMOCartOrder.h:114
virtual Nullable< qint64 > customerid() const
Definition: srcMOCartOrder.h:78
virtual void addtickets(Nullable< MOCartTicket > a)
Definition: srcMOCartOrder.h:112
Encapsulates vouchers as they are stored in the cart. Used by the client to tell the server about new...
Definition: srcMOCartVoucher.h:15
virtual void setcomment(Nullable< QString > s)
Definition: srcMOCartOrder.h:106
virtual void setdeliveryaddressid(Nullable< qint64 > s)
Definition: srcMOCartOrder.h:104
MOCartOrder()
default constructor: constructs an invalid instance of MOCartOrder
Definition: srcMOCartOrder.h:134
virtual void additems(Nullable< MOCartItem > a)
Definition: srcMOCartOrder.h:120
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOCartOrder.h:8
virtual void setstatus(Nullable< ValidationState > s)
set by the server to reflect the processing state of the cart
Definition: srcMOCartOrder.h:98
virtual void cleartickets()
Definition: srcMOCartOrder.h:111
virtual ~MOCartOrder()
destructor: deletes this copy of the object
Definition: srcMOCartOrder.h:146
The cart as used from the remote (non-web) system, this is a transaction object, it has no equivalent...
Definition: srcMOCartOrder.h:18
virtual void setcustomerid(Nullable< qint64 > s)
Definition: srcMOCartOrder.h:100
virtual void settickets(QList< MOCartTicket > s)
Definition: srcMOCartOrder.h:110
virtual void setcartid(Nullable< qint64 > s)
optional ID for the cart itself, the calling process can use this to distinguish different carts...
Definition: srcMOCartOrder.h:96
virtual void addvouchers(Nullable< MOCartVoucher > a)
Definition: srcMOCartOrder.h:116
virtual Nullable< qint64 > deliveryaddressid() const
Definition: srcMOCartOrder.h:82
virtual void clearitems()
Definition: srcMOCartOrder.h:119
virtual void setshippingtypeid(Nullable< qint64 > s)
Definition: srcMOCartOrder.h:108
virtual Nullable< qint64 > invoiceaddressid() const
Definition: srcMOCartOrder.h:80
virtual void setcouponid(Nullable< QString > s)
An optional coupon code to be used in this order.
Definition: srcMOCartOrder.h:122
virtual Nullable< QString > couponid() const
An optional coupon code to be used in this order.
Definition: srcMOCartOrder.h:94
Q_DECLARE_METATYPE(QDomNode)
virtual QList< MOCartTicket > tickets() const
Definition: srcMOCartOrder.h:88
virtual void clearvouchers()
Definition: srcMOCartOrder.h:115
virtual Nullable< ValidationState > status() const
set by the server to reflect the processing state of the cart
Definition: srcMOCartOrder.h:76
virtual void setinvoiceaddressid(Nullable< qint64 > s)
Definition: srcMOCartOrder.h:102
virtual void setitems(QList< MOCartItem > s)
Definition: srcMOCartOrder.h:118
ValidationState
Definition: srcMOCartOrder.h:24
virtual Nullable< qint64 > shippingtypeid() const
Definition: srcMOCartOrder.h:86