3 #ifndef WOBGEN_MOOrderInfoAbstract
4 #define WOBGEN_MOOrderInfoAbstract
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
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)
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;
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;
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;}
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;}
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;}
125 virtual void setsoldby(Nullable<QString> s){mp_soldby=s;}
133 virtual void setstatus(Nullable<OrderState> s){mp_status=s;}
156 QDomElement toXml(QDomDocument&doc,QString name=
"OrderInfo");
158 void toXml(QDomDocument&,QDomElement&);
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