MagicSmoke
$VERSION$
|
Mildly privileged users: change the category of a ticket (eg. from "normal price" to "reduced price"). The new category must exist for the event concerned. More...
#include <srcMTChangeTicketPriceCategory.h>
Public Member Functions | |
MTChangeTicketPriceCategory () | |
default constructor: generates an invalid transaction More... | |
MTChangeTicketPriceCategory (const MTChangeTicketPriceCategory &) | |
copy constructor: the two copies share their state More... | |
virtual | ~MTChangeTicketPriceCategory () |
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... | |
MTChangeTicketPriceCategory & | operator= (const MTChangeTicketPriceCategory &) |
copy assignment: the copy shares the state of the original object More... | |
Static Public Member Functions | |
static MTChangeTicketPriceCategory | asyncQuery (const QString &abarcode, const qint64 &apricecategoryid, 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 MTChangeTicketPriceCategory | query (const QString &abarcode, const qint64 &apricecategoryid, 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 | |
MTChangeTicketPriceCategory (const QString &abarcode, const qint64 &apricecategoryid, 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 | MTChangeTicketPriceCategory_Private |
Mildly privileged users: change the category of a ticket (eg. from "normal price" to "reduced price"). The new category must exist for the event concerned.
|
explicitprotected |
generates an instance from its properties
abarcode | |
apricecategoryid | |
iface | ID of the interface that the transaction will be sent on |
References MTChangeTicketPriceCategory_Private::in_barcode, MTChangeTicketPriceCategory_Private::in_pricecategoryid, and MTChangeTicketPriceCategory_Private.
MTChangeTicketPriceCategory::MTChangeTicketPriceCategory | ( | ) |
default constructor: generates an invalid transaction
References MTChangeTicketPriceCategory_Private.
MTChangeTicketPriceCategory::MTChangeTicketPriceCategory | ( | const MTChangeTicketPriceCategory & | t | ) |
copy constructor: the two copies share their state
References MTChangeTicketPriceCategory_Private::attach().
|
virtual |
deletes this instance
References MTChangeTicketPriceCategory_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
abarcode | |
apricecategoryid | |
iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
Nullable< MOOrder > MTChangeTicketPriceCategory::getorder | ( | ) | const |
the order that ownes the changed ticket, in case this is called from the order window
References MTChangeTicketPriceCategory_Private::out_order.
MTChangeTicketPriceCategory & MTChangeTicketPriceCategory::operator= | ( | const MTChangeTicketPriceCategory & | t | ) |
copy assignment: the copy shares the state of the original object
References MTChangeTicketPriceCategory_Private::attach(), and MTChangeTicketPriceCategory_Private::detach().
|
static |
emits the query over the network and returns the finished transaction object
abarcode | |
apricecategoryid | |
iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryChangeTicketPriceCategory().
|
friend |
Referenced by MTChangeTicketPriceCategory().