MagicSmoke  $VERSION$
srcMOOrderAudit.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_MOOrderAudit
4 #define WOBGEN_MOOrderAudit
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<OrderState> status READ status WRITE setstatus)
52  Q_PROPERTY(Nullable<qint64> amountpaid READ amountpaid WRITE setamountpaid)
54  Q_PROPERTY(Nullable<qint64> shippingcosts READ shippingcosts WRITE setshippingcosts)
56  Q_PROPERTY(Nullable<qint64> ordertime READ ordertime WRITE setordertime)
58  Q_PROPERTY(Nullable<qint64> senttime READ senttime WRITE setsenttime)
60  Q_PROPERTY(Nullable<qint64> audittime READ audittime WRITE setaudittime)
62  Q_PROPERTY(Nullable<QString> audituname READ audituname WRITE setaudituname)
64  Q_PROPERTY(Nullable<QString> audittransaction READ audittransaction WRITE setaudittransaction)
66  Q_PROPERTY(Nullable<QString> paytype READ paytype WRITE setpaytype)
68  Q_PROPERTY(Nullable<QString> paydata READ paydata WRITE setpaydata)
69  protected:
70  Nullable<qint64> mp_orderid;
71  Nullable<qint64> mp_customerid;
72  Nullable<QString> mp_soldby;
73  Nullable<OrderState> mp_status;
74  Nullable<qint64> mp_amountpaid;
75  Nullable<qint64> mp_shippingcosts;
76  Nullable<qint64> mp_ordertime;
77  Nullable<qint64> mp_senttime;
78  Nullable<qint64> mp_audittime;
79  Nullable<QString> mp_audituname;
80  Nullable<QString> mp_audittransaction;
81  Nullable<QString> mp_paytype;
82  Nullable<QString> mp_paydata;
83  public:
85  virtual Nullable<qint64> orderid()const{return mp_orderid;}
87  virtual Nullable<qint64> customerid()const{return mp_customerid;}
89  virtual Nullable<QString> soldby()const{return mp_soldby;}
91  virtual Nullable<OrderState> status()const{return mp_status;}
93  virtual Nullable<qint64> amountpaid()const{return mp_amountpaid;}
95  virtual Nullable<qint64> shippingcosts()const{return mp_shippingcosts;}
97  virtual Nullable<qint64> ordertime()const{return mp_ordertime;}
99  virtual Nullable<qint64> senttime()const{return mp_senttime;}
101  virtual Nullable<qint64> audittime()const{return mp_audittime;}
103  virtual Nullable<QString> audituname()const{return mp_audituname;}
105  virtual Nullable<QString> audittransaction()const{return mp_audittransaction;}
107  virtual Nullable<QString> paytype()const{return mp_paytype;}
109  virtual Nullable<QString> paydata()const{return mp_paydata;}
111  virtual void setorderid(Nullable<qint64> s){mp_orderid=s;}
113  virtual void setcustomerid(Nullable<qint64> s){mp_customerid=s;}
115  virtual void setsoldby(Nullable<QString> s){mp_soldby=s;}
117  virtual void setstatus(Nullable<OrderState> s){mp_status=s;}
119  virtual void setamountpaid(Nullable<qint64> s){mp_amountpaid=s;}
121  virtual void setshippingcosts(Nullable<qint64> s){mp_shippingcosts=s;}
123  virtual void setordertime(Nullable<qint64> s){mp_ordertime=s;}
125  virtual void setsenttime(Nullable<qint64> s){mp_senttime=s;}
127  virtual void setaudittime(Nullable<qint64> s){mp_audittime=s;}
129  virtual void setaudituname(Nullable<QString> s){mp_audituname=s;}
131  virtual void setaudittransaction(Nullable<QString> s){mp_audittransaction=s;}
133  virtual void setpaytype(Nullable<QString> s){mp_paytype=s;}
135  virtual void setpaydata(Nullable<QString> s){mp_paydata=s;}
136  public:
138  QString toString();
142  QDomElement toXml(QDomDocument&doc,QString name="OrderAudit");
144  void toXml(QDomDocument&,QDomElement&);
145  public:
147  MOOrderAudit():WObject(){}
149  MOOrderAudit(const MOOrderAudit&);
151  MOOrderAudit& operator=(const MOOrderAudit&);
153  explicit MOOrderAudit(const QDomElement&);
155  static MOOrderAudit fromXml(const QDomElement&);
157  static MOOrderAudit fromString(const QString&);
159  virtual ~MOOrderAudit(){}
160 
161 };
163 Q_DECLARE_METATYPE(QList<MOOrderAudit::OrderState>)
167 
168 //END OF AUTOMATICALLY GENERATED FILE
169 #endif
MOOrderAudit()
default constructor: constructs an invalid instance of MOOrderAudit
Definition: srcMOOrderAudit.h:147
virtual void setordertime(Nullable< qint64 > s)
Definition: srcMOOrderAudit.h:123
virtual void setaudittime(Nullable< qint64 > s)
Definition: srcMOOrderAudit.h:127
virtual Nullable< qint64 > senttime() const
Definition: srcMOOrderAudit.h:99
virtual void setaudittransaction(Nullable< QString > s)
Definition: srcMOOrderAudit.h:131
virtual void setsenttime(Nullable< qint64 > s)
Definition: srcMOOrderAudit.h:125
virtual void setshippingcosts(Nullable< qint64 > s)
costs for shipping
Definition: srcMOOrderAudit.h:121
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOOrderAudit.h:8
virtual ~MOOrderAudit()
destructor: deletes this copy of the object
Definition: srcMOOrderAudit.h:159
virtual void setorderid(Nullable< qint64 > s)
Definition: srcMOOrderAudit.h:111
virtual void setcustomerid(Nullable< qint64 > s)
Definition: srcMOOrderAudit.h:113
virtual Nullable< qint64 > audittime() const
Definition: srcMOOrderAudit.h:101
virtual Nullable< QString > paydata() const
Definition: srcMOOrderAudit.h:109
virtual Nullable< qint64 > shippingcosts() const
costs for shipping
Definition: srcMOOrderAudit.h:95
virtual void setsoldby(Nullable< QString > s)
Definition: srcMOOrderAudit.h:115
This class represents the audit information about an order.
Definition: srcMOOrderAudit.h:15
virtual Nullable< QString > soldby() const
Definition: srcMOOrderAudit.h:89
virtual Nullable< QString > audituname() const
Definition: srcMOOrderAudit.h:103
virtual void setpaytype(Nullable< QString > s)
Definition: srcMOOrderAudit.h:133
virtual void setaudituname(Nullable< QString > s)
Definition: srcMOOrderAudit.h:129
virtual Nullable< qint64 > amountpaid() const
amount that has been paid for this order
Definition: srcMOOrderAudit.h:93
Q_DECLARE_METATYPE(QDomNode)
OrderState
Status the order is in right now.
Definition: srcMOOrderAudit.h:21
virtual Nullable< qint64 > customerid() const
Definition: srcMOOrderAudit.h:87
virtual void setamountpaid(Nullable< qint64 > s)
amount that has been paid for this order
Definition: srcMOOrderAudit.h:119
virtual Nullable< qint64 > ordertime() const
Definition: srcMOOrderAudit.h:97
virtual Nullable< QString > audittransaction() const
Definition: srcMOOrderAudit.h:105
virtual void setstatus(Nullable< OrderState > s)
Definition: srcMOOrderAudit.h:117
virtual Nullable< QString > paytype() const
Definition: srcMOOrderAudit.h:107
virtual void setpaydata(Nullable< QString > s)
Definition: srcMOOrderAudit.h:135
virtual Nullable< OrderState > status() const
Definition: srcMOOrderAudit.h:91