3 #ifndef WOBGEN_MTDeductVoucher
4 #define WOBGEN_MTDeductVoucher
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
11 #include "MTransaction"
32 explicit MTDeductVoucher(
const QString &avoucherid,
const qint64 &aamount,
const QString &acomment,QString iface);
45 QByteArray encodeData();
46 void decodeData(QByteArray);
48 virtual void endQuery();
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;
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