MagicSmoke  $VERSION$
srcMTDeductVoucher.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_MTDeductVoucher
4 #define WOBGEN_MTDeductVoucher
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 <MOVoucher>
13 
15 
21 {
22  Q_OBJECT
23  private:
26  protected:
32  explicit MTDeductVoucher(const QString &avoucherid,const qint64 &aamount,const QString &acomment,QString iface);
33  public:
39  MTDeductVoucher& operator=(const MTDeductVoucher&);
41  virtual ~MTDeductVoucher();
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 MTDeductVoucher query(const QString &avoucherid,const qint64 &aamount,const QString &acomment,QString iface="MagicSmoke");
61  static MTDeductVoucher asyncQuery(const QString &avoucherid,const qint64 &aamount,const QString &acomment,QString iface="MagicSmoke");
63  Q_SLOT Nullable<MOVoucher> getvoucher()const;
65  Q_SLOT Nullable<qint64> getamount()const;
66 };
67 
69 
70 //END OF AUTOMATICALLY GENERATED FILE
71 #endif
Deducts an amount from a voucher - this can be used for items that are not in the MagicSmoke shop rep...
Definition: srcMTDeductVoucher.h:20
Definition: srcMTDeductVoucher.cpp:12
Definition: transaction.h:25
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMTDeductVoucher.h:8
Q_DECLARE_METATYPE(QDomNode)
friend class MTDeductVoucher
Definition: srcMTDeductVoucher.cpp:15