MagicSmoke
$VERSION$
|
Reservations are orders that are not executed right away. They may only contain tickets that block some seats for a limited time. They cannot contain any shopping items or vouchers. More...
#include <srcMTCreateReservation.h>
Public Member Functions | |
MTCreateReservation () | |
default constructor: generates an invalid transaction More... | |
MTCreateReservation (const MTCreateReservation &) | |
copy constructor: the two copies share their state More... | |
virtual | ~MTCreateReservation () |
deletes this instance More... | |
Q_SLOT Nullable< MOCartOrder > | getcart () const |
If unsuccessful: the cart with annotations. More... | |
Q_SLOT Nullable< MOOrder > | getorder () const |
If successful: the created order. More... | |
MTCreateReservation & | operator= (const MTCreateReservation &) |
copy assignment: the copy shares the state of the original object More... | |
Static Public Member Functions | |
static MTCreateReservation | asyncQuery (const MOCartOrder &acart, 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 MTCreateReservation | query (const MOCartOrder &acart, 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 | |
MTCreateReservation (const MOCartOrder &acart, 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 | MTCreateReservation_Private |
Reservations are orders that are not executed right away. They may only contain tickets that block some seats for a limited time. They cannot contain any shopping items or vouchers.
|
explicitprotected |
generates an instance from its properties
acart | The cart contents |
iface | ID of the interface that the transaction will be sent on |
References MTCreateReservation_Private::in_cart, and MTCreateReservation_Private.
MTCreateReservation::MTCreateReservation | ( | ) |
default constructor: generates an invalid transaction
References MTCreateReservation_Private.
MTCreateReservation::MTCreateReservation | ( | const MTCreateReservation & | t | ) |
copy constructor: the two copies share their state
References MTCreateReservation_Private::attach().
|
virtual |
deletes this instance
References MTCreateReservation_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
acart | The cart contents |
iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
Nullable< MOCartOrder > MTCreateReservation::getcart | ( | ) | const |
If unsuccessful: the cart with annotations.
References MTCreateReservation_Private::out_cart.
Nullable< MOOrder > MTCreateReservation::getorder | ( | ) | const |
If successful: the created order.
References MTCreateReservation_Private::out_order.
MTCreateReservation & MTCreateReservation::operator= | ( | const MTCreateReservation & | t | ) |
copy assignment: the copy shares the state of the original object
References MTCreateReservation_Private::attach(), and MTCreateReservation_Private::detach().
|
static |
emits the query over the network and returns the finished transaction object
acart | The cart contents |
iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryCreateReservation().
|
friend |
Referenced by MTCreateReservation().