MagicSmoke  $VERSION$
srcMTUseTicket.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_MTUseTicket
4 #define WOBGEN_MTUseTicket
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 <MOTicketUse>
13 
15 
18 {
19  Q_OBJECT
20  private:
22  friend class MTUseTicket_Private;
23  protected:
28  explicit MTUseTicket(const QString &aticketid,const qint64 &aeventid,QString iface);
29  public:
31  MTUseTicket();
33  MTUseTicket(const MTUseTicket&);
35  MTUseTicket& operator=(const MTUseTicket&);
37  virtual ~MTUseTicket();
38  private:
39  void netquery();
40  void asyncnetquery();
41  QByteArray encodeData();
42  void decodeData(QByteArray);
43  protected:
44  virtual void endQuery();
45  public:
50  static MTUseTicket query(const QString &aticketid,const qint64 &aeventid,QString iface="MagicSmoke");
55  static MTUseTicket asyncQuery(const QString &aticketid,const qint64 &aeventid,QString iface="MagicSmoke");
57  Q_SLOT Nullable<MOTicketUse> getticketuse()const;
58 };
59 
61 
62 //END OF AUTOMATICALLY GENERATED FILE
63 #endif
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMTUseTicket.h:8
Attempts to mark a ticket as used. Fails if the ticket has already been used or is not paid for...
Definition: srcMTUseTicket.h:17
Definition: srcMTUseTicket.cpp:12
Definition: transaction.h:25
Q_DECLARE_METATYPE(QDomNode)
friend class MTUseTicket
Definition: srcMTUseTicket.cpp:15