MagicSmoke  $VERSION$
MTWebCartAddTicket Class Reference

Called from the Web UI only: adds tickets to a specific event. More...

#include <srcMTWebCartAddTicket.h>

Inheritance diagram for MTWebCartAddTicket:
MTransaction

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...
 
MTWebCartAddTicketoperator= (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
 

Detailed Description

Called from the Web UI only: adds tickets to a specific event.

Constructor & Destructor Documentation

MTWebCartAddTicket::MTWebCartAddTicket ( const QString &  acartid,
const qint64 &  aeventid,
const qint64 &  apricecategoryid,
const qint64 &  aamount,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
acartidThe cart to add into
aeventidThe event to buy tickets for
apricecategoryidPrice category of that event
aamountamount of tickets
ifaceID 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().

MTWebCartAddTicket::~MTWebCartAddTicket ( )
virtual

deletes this instance

References MTWebCartAddTicket_Private::detach().

Member Function Documentation

MTWebCartAddTicket MTWebCartAddTicket::asyncQuery ( const QString &  acartid,
const qint64 &  aeventid,
const qint64 &  apricecategoryid,
const qint64 &  aamount,
QString  iface = "MagicSmoke" 
)
static

emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state

Parameters
acartidThe cart to add into
aeventidThe event to buy tickets for
apricecategoryidPrice category of that event
aamountamount of tickets
ifaceID of the interface that the transaction will be sent on
void MTWebCartAddTicket::endQuery ( )
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().

MTWebCartAddTicket MTWebCartAddTicket::query ( const QString &  acartid,
const qint64 &  aeventid,
const qint64 &  apricecategoryid,
const qint64 &  aamount,
QString  iface = "MagicSmoke" 
)
static

emits the query over the network and returns the finished transaction object

Parameters
acartidThe cart to add into
aeventidThe event to buy tickets for
apricecategoryidPrice category of that event
aamountamount of tickets
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryWebCartAddTicket().

Friends And Related Function Documentation

friend class MTWebCartAddTicket_Private
friend

Referenced by MTWebCartAddTicket().


The documentation for this class was generated from the following files: