MagicSmoke  $VERSION$
srcMTCreateOrder.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_MTCreateOrder
4 #define WOBGEN_MTCreateOrder
5 
6 
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
9 #endif
10 
11 #include "MTransaction"
12 #include <MOCartOrder>
13 #include <MOOrder>
14 #include <MOVoucher>
15 #include <MOCartOrder>
16 
18 
21 {
22  Q_OBJECT
23  private:
25  friend class MTCreateOrder_Private;
26  protected:
32  explicit MTCreateOrder(const MOCartOrder &acart,const bool &aissale,const QList<QString> &avouchers,QString iface);
33  public:
35  MTCreateOrder();
39  MTCreateOrder& operator=(const MTCreateOrder&);
41  virtual ~MTCreateOrder();
42  private:
43  void netquery();
44  void asyncnetquery();
45  QByteArray encodeData();
46  void decodeData(QByteArray);
47  protected:
48  virtual void endQuery();
49  public:
55  static MTCreateOrder query(const MOCartOrder &acart,const bool &aissale,const QList<QString> &avouchers,QString iface="MagicSmoke");
61  static MTCreateOrder asyncQuery(const MOCartOrder &acart,const bool &aissale,const QList<QString> &avouchers,QString iface="MagicSmoke");
63  Q_SLOT Nullable<MOOrder> getorder()const;
65  Q_SLOT QList<MOVoucher> getvouchers()const;
67  Q_SLOT Nullable<qint64> getpaidcash()const;
69  Q_SLOT Nullable<MOCartOrder> getcart()const;
70 };
71 
73 
74 //END OF AUTOMATICALLY GENERATED FILE
75 #endif
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMTCreateOrder.h:8
friend class MTCreateOrder
Definition: srcMTCreateOrder.cpp:15
The cart as used from the remote (non-web) system, this is a transaction object, it has no equivalent...
Definition: srcMOCartOrder.h:18
Definition: transaction.h:25
Q_DECLARE_METATYPE(QDomNode)
Definition: srcMTCreateOrder.cpp:12
CreateOrder creates orders that are queued to be executed immediately or sales that are marked execut...
Definition: srcMTCreateOrder.h:20