MagicSmoke  $VERSION$
srcMTUseVoucher.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_MTUseVoucher
4 #define WOBGEN_MTUseVoucher
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 <MOOrder>
13 #include <MOVoucher>
14 
16 
23 {
24  Q_OBJECT
25  private:
27  friend class MTUseVoucher_Private;
28  protected:
33  explicit MTUseVoucher(const qint64 &aorderid,const QString &avoucherid,QString iface);
34  public:
36  MTUseVoucher();
38  MTUseVoucher(const MTUseVoucher&);
40  MTUseVoucher& operator=(const MTUseVoucher&);
42  virtual ~MTUseVoucher();
43  private:
44  void netquery();
45  void asyncnetquery();
46  QByteArray encodeData();
47  void decodeData(QByteArray);
48  protected:
49  virtual void endQuery();
50  public:
55  static MTUseVoucher query(const qint64 &aorderid,const QString &avoucherid,QString iface="MagicSmoke");
60  static MTUseVoucher asyncQuery(const qint64 &aorderid,const QString &avoucherid,QString iface="MagicSmoke");
62  Q_SLOT Nullable<MOOrder> getorder()const;
64  Q_SLOT Nullable<MOVoucher> getvoucher()const;
66  Q_SLOT Nullable<qint64> getamount()const;
67 };
68 
70 
71 //END OF AUTOMATICALLY GENERATED FILE
72 #endif
Use a voucher to pay for an order.
Definition: srcMTUseVoucher.h:22
Definition: srcMTUseVoucher.cpp:12
Definition: transaction.h:25
friend class MTUseVoucher
Definition: srcMTUseVoucher.cpp:15
Q_DECLARE_METATYPE(QDomNode)
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMTUseVoucher.h:8