MagicSmoke
$VERSION$
|
Privileged users: change the price of a ticket. Usually you would change its category. More...
#include <srcMTChangeTicketPrice.h>
Public Member Functions | |
MTChangeTicketPrice () | |
default constructor: generates an invalid transaction More... | |
MTChangeTicketPrice (const MTChangeTicketPrice &) | |
copy constructor: the two copies share their state More... | |
virtual | ~MTChangeTicketPrice () |
deletes this instance More... | |
Q_SLOT Nullable< MOOrder > | getorder () const |
the order that ownes the changed ticket, in case this is called from the order window More... | |
MTChangeTicketPrice & | operator= (const MTChangeTicketPrice &) |
copy assignment: the copy shares the state of the original object More... | |
Static Public Member Functions | |
static MTChangeTicketPrice | asyncQuery (const QString &abarcode, const qint64 &aprice, 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 MTChangeTicketPrice | query (const QString &abarcode, const qint64 &aprice, 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 | |
MTChangeTicketPrice (const QString &abarcode, const qint64 &aprice, 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 | MTChangeTicketPrice_Private |
Privileged users: change the price of a ticket. Usually you would change its category.
|
explicitprotected |
generates an instance from its properties
abarcode | |
aprice | |
iface | ID of the interface that the transaction will be sent on |
References MTChangeTicketPrice_Private::in_barcode, MTChangeTicketPrice_Private::in_price, and MTChangeTicketPrice_Private.
MTChangeTicketPrice::MTChangeTicketPrice | ( | ) |
default constructor: generates an invalid transaction
References MTChangeTicketPrice_Private.
MTChangeTicketPrice::MTChangeTicketPrice | ( | const MTChangeTicketPrice & | t | ) |
copy constructor: the two copies share their state
References MTChangeTicketPrice_Private::attach().
|
virtual |
deletes this instance
References MTChangeTicketPrice_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
abarcode | |
aprice | |
iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
Nullable< MOOrder > MTChangeTicketPrice::getorder | ( | ) | const |
the order that ownes the changed ticket, in case this is called from the order window
References MTChangeTicketPrice_Private::out_order.
MTChangeTicketPrice & MTChangeTicketPrice::operator= | ( | const MTChangeTicketPrice & | t | ) |
copy assignment: the copy shares the state of the original object
References MTChangeTicketPrice_Private::attach(), and MTChangeTicketPrice_Private::detach().
|
static |
emits the query over the network and returns the finished transaction object
abarcode | |
aprice | |
iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryChangeTicketPrice().
|
friend |
Referenced by MTChangeTicketPrice().