MagicSmoke  $VERSION$
srcMTCreateCoupon.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_MTCreateCoupon
4 #define WOBGEN_MTCreateCoupon
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 <MOCoupon>
13 #include <MOCoupon>
14 
16 
19 {
20  Q_OBJECT
21  private:
23  friend class MTCreateCoupon_Private;
24  protected:
28  explicit MTCreateCoupon(const MOCoupon &acoupon,QString iface);
29  public:
35  MTCreateCoupon& operator=(const MTCreateCoupon&);
37  virtual ~MTCreateCoupon();
38  private:
39  void netquery();
40  void asyncnetquery();
41  QByteArray encodeData();
42  void decodeData(QByteArray);
43  protected:
44  virtual void endQuery();
45  public:
49  static MTCreateCoupon query(const MOCoupon &acoupon,QString iface="MagicSmoke");
53  static MTCreateCoupon asyncQuery(const MOCoupon &acoupon,QString iface="MagicSmoke");
55  Q_SLOT Nullable<MOCoupon> getcoupon()const;
56 };
57 
59 
60 //END OF AUTOMATICALLY GENERATED FILE
61 #endif
This class represents a coupon.
Definition: srcMOCoupon.h:16
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMTCreateCoupon.h:8
Definition: srcMTCreateCoupon.cpp:12
Creates a new coupon.
Definition: srcMTCreateCoupon.h:18
friend class MTCreateCoupon
Definition: srcMTCreateCoupon.cpp:15
Definition: transaction.h:25
Q_DECLARE_METATYPE(QDomNode)