|
MagicSmoke
$VERSION$
|
Called from the Web UI only: adds tickets to a specific event. More...
#include <srcMTWebCartAddTicket.h>
Public Member Functions | |
| MTWebCartAddTicket () | |
| default constructor: generates an invalid transaction More... | |
| MTWebCartAddTicket (const MTWebCartAddTicket &) | |
| copy constructor: the two copies share their state More... | |
| virtual | ~MTWebCartAddTicket () |
| deletes this instance More... | |
| MTWebCartAddTicket & | operator= (const MTWebCartAddTicket &) |
| copy assignment: the copy shares the state of the original object More... | |
Static Public Member Functions | |
| static MTWebCartAddTicket | asyncQuery (const QString &acartid, const qint64 &aeventid, const qint64 &apricecategoryid, const qint64 &aamount, 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 MTWebCartAddTicket | query (const QString &acartid, const qint64 &aeventid, const qint64 &apricecategoryid, const qint64 &aamount, 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 | |
| MTWebCartAddTicket (const QString &acartid, const qint64 &aeventid, const qint64 &apricecategoryid, const qint64 &aamount, 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 | MTWebCartAddTicket_Private |
Called from the Web UI only: adds tickets to a specific event.
|
explicitprotected |
generates an instance from its properties
| acartid | The cart to add into |
| aeventid | The event to buy tickets for |
| apricecategoryid | Price category of that event |
| aamount | amount of tickets |
| iface | ID of the interface that the transaction will be sent on |
References MTWebCartAddTicket_Private::in_amount, MTWebCartAddTicket_Private::in_cartid, MTWebCartAddTicket_Private::in_eventid, MTWebCartAddTicket_Private::in_pricecategoryid, and MTWebCartAddTicket_Private.
| MTWebCartAddTicket::MTWebCartAddTicket | ( | ) |
default constructor: generates an invalid transaction
References MTWebCartAddTicket_Private.
| MTWebCartAddTicket::MTWebCartAddTicket | ( | const MTWebCartAddTicket & | t | ) |
copy constructor: the two copies share their state
References MTWebCartAddTicket_Private::attach().
|
virtual |
deletes this instance
References MTWebCartAddTicket_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
| acartid | The cart to add into |
| aeventid | The event to buy tickets for |
| apricecategoryid | Price category of that event |
| aamount | amount of tickets |
| iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
| MTWebCartAddTicket & MTWebCartAddTicket::operator= | ( | const MTWebCartAddTicket & | t | ) |
copy assignment: the copy shares the state of the original object
References MTWebCartAddTicket_Private::attach(), and MTWebCartAddTicket_Private::detach().
|
static |
emits the query over the network and returns the finished transaction object
| acartid | The cart to add into |
| aeventid | The event to buy tickets for |
| apricecategoryid | Price category of that event |
| aamount | amount of tickets |
| iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryWebCartAddTicket().
|
friend |
Referenced by MTWebCartAddTicket().