MagicSmoke  $VERSION$
srcMOOrderInfoAbstract.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_MOOrderInfoAbstract
4 #define WOBGEN_MOOrderInfoAbstract
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 
16 {
17  Q_GADGET
18  public:
19  Q_ENUMS(OrderState);
21  enum OrderState{
23  Placed=0,
25  Sent=1,
27  Sold=1,
29  Cancelled=2,
31  Reserved=4,
33  Closed=128
34  };
36  static OrderState str2OrderState(QString,bool*ok=0);
38  static QString OrderState2str(OrderState);
40  static OrderState locstr2OrderState(QString,bool*ok=0);
42  static QString OrderState2locstr(OrderState);
44  Q_PROPERTY(Nullable<qint64> orderid READ orderid WRITE setorderid)
46  Q_PROPERTY(Nullable<qint64> customerid READ customerid WRITE setcustomerid)
48  Q_PROPERTY(Nullable<QString> soldby READ soldby WRITE setsoldby)
50  Q_PROPERTY(Nullable<qint64> amounttickets READ amounttickets WRITE setamounttickets)
52  Q_PROPERTY(Nullable<qint64> amountvouchers READ amountvouchers WRITE setamountvouchers)
54  Q_PROPERTY(Nullable<qint64> amountitems READ amountitems WRITE setamountitems)
56  Q_PROPERTY(Nullable<OrderState> status READ status WRITE setstatus)
58  Q_PROPERTY(Nullable<qint64> amountpaid READ amountpaid WRITE setamountpaid)
60  Q_PROPERTY(Nullable<qint64> amountdue READ amountdue WRITE setamountdue)
62  Q_PROPERTY(Nullable<qint64> totalprice READ totalprice WRITE settotalprice)
64  Q_PROPERTY(Nullable<qint64> shippingcosts READ shippingcosts WRITE setshippingcosts)
66  Q_PROPERTY(Nullable<qint64> shippingtypeid READ shippingtypeid WRITE setshippingtypeid)
68  Q_PROPERTY(Nullable<qint64> ordertime READ ordertime WRITE setordertime)
70  Q_PROPERTY(Nullable<qint64> senttime READ senttime WRITE setsenttime)
72  Q_PROPERTY(Nullable<QString> couponid READ couponid WRITE setcouponid)
73  protected:
74  Nullable<qint64> mp_orderid;
75  Nullable<qint64> mp_customerid;
76  Nullable<QString> mp_soldby;
77  Nullable<qint64> mp_amounttickets;
78  Nullable<qint64> mp_amountvouchers;
79  Nullable<qint64> mp_amountitems;
80  Nullable<OrderState> mp_status;
81  Nullable<qint64> mp_amountpaid;
82  Nullable<qint64> mp_amountdue;
83  Nullable<qint64> mp_totalprice;
84  Nullable<qint64> mp_shippingcosts;
85  Nullable<qint64> mp_shippingtypeid;
86  Nullable<qint64> mp_ordertime;
87  Nullable<qint64> mp_senttime;
88  Nullable<QString> mp_couponid;
89  public:
91  virtual Nullable<qint64> orderid()const{return mp_orderid;}
93  virtual Nullable<qint64> customerid()const{return mp_customerid;}
95  virtual Nullable<QString> soldby()const{return mp_soldby;}
97  virtual Nullable<qint64> amounttickets()const{return mp_amounttickets;}
99  virtual Nullable<qint64> amountvouchers()const{return mp_amountvouchers;}
101  virtual Nullable<qint64> amountitems()const{return mp_amountitems;}
103  virtual Nullable<OrderState> status()const{return mp_status;}
105  virtual Nullable<qint64> amountpaid()const{return mp_amountpaid;}
107  virtual Nullable<qint64> amountdue()const{return mp_amountdue;}
109  virtual Nullable<qint64> totalprice()const{return mp_totalprice;}
111  virtual Nullable<qint64> shippingcosts()const{return mp_shippingcosts;}
113  virtual Nullable<qint64> shippingtypeid()const{return mp_shippingtypeid;}
115  virtual Nullable<qint64> ordertime()const{return mp_ordertime;}
117  virtual Nullable<qint64> senttime()const{return mp_senttime;}
119  virtual Nullable<QString> couponid()const{return mp_couponid;}
121  virtual void setorderid(Nullable<qint64> s){mp_orderid=s;}
123  virtual void setcustomerid(Nullable<qint64> s){mp_customerid=s;}
125  virtual void setsoldby(Nullable<QString> s){mp_soldby=s;}
127  virtual void setamounttickets(Nullable<qint64> s){mp_amounttickets=s;}
129  virtual void setamountvouchers(Nullable<qint64> s){mp_amountvouchers=s;}
131  virtual void setamountitems(Nullable<qint64> s){mp_amountitems=s;}
133  virtual void setstatus(Nullable<OrderState> s){mp_status=s;}
135  virtual void setamountpaid(Nullable<qint64> s){mp_amountpaid=s;}
137  virtual void setamountdue(Nullable<qint64> s){mp_amountdue=s;}
139  virtual void settotalprice(Nullable<qint64> s){mp_totalprice=s;}
141  virtual void setshippingcosts(Nullable<qint64> s){mp_shippingcosts=s;}
143  virtual void setshippingtypeid(Nullable<qint64> s){mp_shippingtypeid=s;}
145  virtual void setordertime(Nullable<qint64> s){mp_ordertime=s;}
147  virtual void setsenttime(Nullable<qint64> s){mp_senttime=s;}
149  virtual void setcouponid(Nullable<QString> s){mp_couponid=s;}
150  public:
152  QString toString();
156  QDomElement toXml(QDomDocument&doc,QString name="OrderInfo");
158  void toXml(QDomDocument&,QDomElement&);
159  public:
161  MOOrderInfoAbstract():WObject(){}
165  MOOrderInfoAbstract& operator=(const MOOrderInfoAbstract&);
167  explicit MOOrderInfoAbstract(const QDomElement&);
169  static MOOrderInfoAbstract fromXml(const QDomElement&);
171  static MOOrderInfoAbstract fromString(const QString&);
174 
175 };
177 Q_DECLARE_METATYPE(QList<MOOrderInfoAbstract::OrderState>)
181 
182 //END OF AUTOMATICALLY GENERATED FILE
183 #endif
virtual ~MOOrderInfoAbstract()
destructor: deletes this copy of the object
Definition: srcMOOrderInfoAbstract.h:173
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOOrderInfoAbstract.h:8
virtual void setamountdue(Nullable< qint64 > s)
amount that needs to be paid, negative if too much has been paid
Definition: srcMOOrderInfoAbstract.h:137
virtual void setamountvouchers(Nullable< qint64 > s)
Definition: srcMOOrderInfoAbstract.h:129
virtual Nullable< qint64 > ordertime() const
Definition: srcMOOrderInfoAbstract.h:115
virtual void setshippingcosts(Nullable< qint64 > s)
costs for shipping
Definition: srcMOOrderInfoAbstract.h:141
virtual Nullable< qint64 > senttime() const
Definition: srcMOOrderInfoAbstract.h:117
virtual void settotalprice(Nullable< qint64 > s)
total price for this order (including shipping and all items)
Definition: srcMOOrderInfoAbstract.h:139
virtual void setshippingtypeid(Nullable< qint64 > s)
Definition: srcMOOrderInfoAbstract.h:143
virtual Nullable< qint64 > shippingtypeid() const
Definition: srcMOOrderInfoAbstract.h:113
virtual void setsoldby(Nullable< QString > s)
Definition: srcMOOrderInfoAbstract.h:125
virtual Nullable< qint64 > amountvouchers() const
Definition: srcMOOrderInfoAbstract.h:99
virtual void setcouponid(Nullable< QString > s)
Definition: srcMOOrderInfoAbstract.h:149
virtual void setsenttime(Nullable< qint64 > s)
Definition: srcMOOrderInfoAbstract.h:147
OrderState
Status the order is in right now.
Definition: srcMOOrderInfoAbstract.h:21
virtual Nullable< qint64 > amounttickets() const
Definition: srcMOOrderInfoAbstract.h:97
virtual void setamountpaid(Nullable< qint64 > s)
amount that has been paid for this order
Definition: srcMOOrderInfoAbstract.h:135
virtual void setamountitems(Nullable< qint64 > s)
Definition: srcMOOrderInfoAbstract.h:131
virtual Nullable< qint64 > amountpaid() const
amount that has been paid for this order
Definition: srcMOOrderInfoAbstract.h:105
virtual Nullable< qint64 > amountitems() const
Definition: srcMOOrderInfoAbstract.h:101
virtual Nullable< qint64 > customerid() const
Definition: srcMOOrderInfoAbstract.h:93
virtual void setamounttickets(Nullable< qint64 > s)
Definition: srcMOOrderInfoAbstract.h:127
virtual Nullable< QString > couponid() const
Definition: srcMOOrderInfoAbstract.h:119
virtual Nullable< qint64 > amountdue() const
amount that needs to be paid, negative if too much has been paid
Definition: srcMOOrderInfoAbstract.h:107
This class represents the main information about an order as shown in lists.
Definition: srcMOOrderInfoAbstract.h:15
virtual void setcustomerid(Nullable< qint64 > s)
Definition: srcMOOrderInfoAbstract.h:123
virtual Nullable< QString > soldby() const
Definition: srcMOOrderInfoAbstract.h:95
virtual Nullable< OrderState > status() const
Definition: srcMOOrderInfoAbstract.h:103
Q_DECLARE_METATYPE(QDomNode)
virtual void setorderid(Nullable< qint64 > s)
Definition: srcMOOrderInfoAbstract.h:121
virtual Nullable< qint64 > totalprice() const
total price for this order (including shipping and all items)
Definition: srcMOOrderInfoAbstract.h:109
virtual void setordertime(Nullable< qint64 > s)
Definition: srcMOOrderInfoAbstract.h:145
virtual Nullable< qint64 > shippingcosts() const
costs for shipping
Definition: srcMOOrderInfoAbstract.h:111
MOOrderInfoAbstract()
default constructor: constructs an invalid instance of MOOrderInfoAbstract
Definition: srcMOOrderInfoAbstract.h:161
virtual void setstatus(Nullable< OrderState > s)
Definition: srcMOOrderInfoAbstract.h:133