MagicSmoke
$VERSION$
|
Attempts to mark a ticket as used. Fails if the ticket has already been used or is not paid for. More...
#include <srcMTUseTicket.h>
Public Member Functions | |
MTUseTicket () | |
default constructor: generates an invalid transaction More... | |
MTUseTicket (const MTUseTicket &) | |
copy constructor: the two copies share their state More... | |
virtual | ~MTUseTicket () |
deletes this instance More... | |
Q_SLOT Nullable< MOTicketUse > | getticketuse () const |
MTUseTicket & | operator= (const MTUseTicket &) |
copy assignment: the copy shares the state of the original object More... | |
Static Public Member Functions | |
static MTUseTicket | asyncQuery (const QString &aticketid, const qint64 &aeventid, QString iface="MagicSmoke") |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state More... | |
static MTUseTicket | query (const QString &aticketid, const qint64 &aeventid, QString iface="MagicSmoke") |
emits the query over the network and returns the finished transaction object More... | |
Static Public Member Functions inherited from MTransaction | |
static void | setStartStopActions (const MTStartStop &start, const MTStartStop &stop) |
set actions to be executed at start/stop More... | |
Protected Member Functions | |
MTUseTicket (const QString &aticketid, const qint64 &aeventid, QString iface) | |
generates an instance from its properties More... | |
virtual void | endQuery () |
Protected Member Functions inherited from MTransaction | |
MTransaction (QString iface=QString()) | |
internal: construct the transaction More... | |
MTransaction (const WTransaction &) | |
internal: copy the transaction More... | |
MTransaction (const MTransaction &) | |
internal: copy the transaction More... | |
QByteArray | executeQuery (QString, QByteArray) |
internal: extend executeQuery to show a wait cursor More... | |
Friends | |
class | MTUseTicket_Private |
Attempts to mark a ticket as used. Fails if the ticket has already been used or is not paid for.
|
explicitprotected |
generates an instance from its properties
aticketid | The ticket to be used |
aeventid | The event to use it on |
iface | ID of the interface that the transaction will be sent on |
References MTUseTicket_Private::in_eventid, MTUseTicket_Private::in_ticketid, and MTUseTicket_Private.
MTUseTicket::MTUseTicket | ( | ) |
default constructor: generates an invalid transaction
References MTUseTicket_Private.
MTUseTicket::MTUseTicket | ( | const MTUseTicket & | t | ) |
copy constructor: the two copies share their state
References MTUseTicket_Private::attach().
|
virtual |
deletes this instance
References MTUseTicket_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
aticketid | The ticket to be used |
aeventid | The event to use it on |
iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
Nullable< MOTicketUse > MTUseTicket::getticketuse | ( | ) | const |
References MTUseTicket_Private::out_ticketuse.
MTUseTicket & MTUseTicket::operator= | ( | const MTUseTicket & | t | ) |
copy assignment: the copy shares the state of the original object
References MTUseTicket_Private::attach(), and MTUseTicket_Private::detach().
|
static |
emits the query over the network and returns the finished transaction object
aticketid | The ticket to be used |
aeventid | The event to use it on |
iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryUseTicket().
|
friend |
Referenced by MTUseTicket().