3 #ifndef WOBGEN_MTUseVoucher
4 #define WOBGEN_MTUseVoucher
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
11 #include "MTransaction"
33 explicit MTUseVoucher(
const qint64 &aorderid,
const QString &avoucherid,QString iface);
46 QByteArray encodeData();
47 void decodeData(QByteArray);
49 virtual void endQuery();
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;
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