MagicSmoke
$VERSION$
|
Privileged users: return a ticket or voucher and deduct its price from the order it was in. This may fail if the ticket or voucher has already been used. More...
#include <srcMTReturnTicketVoucher.h>
Public Member Functions | |
MTReturnTicketVoucher () | |
default constructor: generates an invalid transaction More... | |
MTReturnTicketVoucher (const MTReturnTicketVoucher &) | |
copy constructor: the two copies share their state More... | |
virtual | ~MTReturnTicketVoucher () |
deletes this instance More... | |
Q_SLOT Nullable< MOOrder > | getorder () const |
the order that owned the returned object, in case this is called from the order window More... | |
MTReturnTicketVoucher & | operator= (const MTReturnTicketVoucher &) |
copy assignment: the copy shares the state of the original object More... | |
Static Public Member Functions | |
static MTReturnTicketVoucher | asyncQuery (const QString &abarcode, 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 MTReturnTicketVoucher | query (const QString &abarcode, 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 | |
MTReturnTicketVoucher (const QString &abarcode, 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 | MTReturnTicketVoucher_Private |
Privileged users: return a ticket or voucher and deduct its price from the order it was in. This may fail if the ticket or voucher has already been used.
|
explicitprotected |
generates an instance from its properties
abarcode | barcode of the ticket or voucher |
iface | ID of the interface that the transaction will be sent on |
References MTReturnTicketVoucher_Private::in_barcode, and MTReturnTicketVoucher_Private.
MTReturnTicketVoucher::MTReturnTicketVoucher | ( | ) |
default constructor: generates an invalid transaction
References MTReturnTicketVoucher_Private.
MTReturnTicketVoucher::MTReturnTicketVoucher | ( | const MTReturnTicketVoucher & | t | ) |
copy constructor: the two copies share their state
References MTReturnTicketVoucher_Private::attach().
|
virtual |
deletes this instance
References MTReturnTicketVoucher_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
abarcode | barcode of the ticket or voucher |
iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
Nullable< MOOrder > MTReturnTicketVoucher::getorder | ( | ) | const |
the order that owned the returned object, in case this is called from the order window
References MTReturnTicketVoucher_Private::out_order.
MTReturnTicketVoucher & MTReturnTicketVoucher::operator= | ( | const MTReturnTicketVoucher & | t | ) |
copy assignment: the copy shares the state of the original object
References MTReturnTicketVoucher_Private::attach(), and MTReturnTicketVoucher_Private::detach().
|
static |
emits the query over the network and returns the finished transaction object
abarcode | barcode of the ticket or voucher |
iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryReturnTicketVoucher(), and MOverview::ticketReturn().
|
friend |
Referenced by MTReturnTicketVoucher().