MagicSmoke  $VERSION$
MTWebCartRemoveTicket Class Reference

Called from the Web UI only: removes tickets for a specific event from the cart. More...

#include <srcMTWebCartRemoveTicket.h>

Inheritance diagram for MTWebCartRemoveTicket:
MTransaction

Public Member Functions

 MTWebCartRemoveTicket ()
 default constructor: generates an invalid transaction More...
 
 MTWebCartRemoveTicket (const MTWebCartRemoveTicket &)
 copy constructor: the two copies share their state More...
 
virtual ~MTWebCartRemoveTicket ()
 deletes this instance More...
 
MTWebCartRemoveTicketoperator= (const MTWebCartRemoveTicket &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTWebCartRemoveTicket asyncQuery (const QString &acartid, const qint64 &aeventid, 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 MTWebCartRemoveTicket query (const QString &acartid, const qint64 &aeventid, 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

 MTWebCartRemoveTicket (const QString &acartid, const qint64 &aeventid, 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 MTWebCartRemoveTicket_Private
 

Detailed Description

Called from the Web UI only: removes tickets for a specific event from the cart.

Constructor & Destructor Documentation

MTWebCartRemoveTicket::MTWebCartRemoveTicket ( const QString &  acartid,
const qint64 &  aeventid,
const qint64 &  apricecategoryid,
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
ifaceID of the interface that the transaction will be sent on

References MTWebCartRemoveTicket_Private::in_cartid, MTWebCartRemoveTicket_Private::in_eventid, MTWebCartRemoveTicket_Private::in_pricecategoryid, and MTWebCartRemoveTicket_Private.

MTWebCartRemoveTicket::MTWebCartRemoveTicket ( )

default constructor: generates an invalid transaction

References MTWebCartRemoveTicket_Private.

MTWebCartRemoveTicket::MTWebCartRemoveTicket ( const MTWebCartRemoveTicket t)

copy constructor: the two copies share their state

References MTWebCartRemoveTicket_Private::attach().

MTWebCartRemoveTicket::~MTWebCartRemoveTicket ( )
virtual

deletes this instance

References MTWebCartRemoveTicket_Private::detach().

Member Function Documentation

MTWebCartRemoveTicket MTWebCartRemoveTicket::asyncQuery ( const QString &  acartid,
const qint64 &  aeventid,
const qint64 &  apricecategoryid,
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
ifaceID of the interface that the transaction will be sent on
void MTWebCartRemoveTicket::endQuery ( )
protectedvirtual
MTWebCartRemoveTicket & MTWebCartRemoveTicket::operator= ( const MTWebCartRemoveTicket t)

copy assignment: the copy shares the state of the original object

References MTWebCartRemoveTicket_Private::attach(), and MTWebCartRemoveTicket_Private::detach().

MTWebCartRemoveTicket MTWebCartRemoveTicket::query ( const QString &  acartid,
const qint64 &  aeventid,
const qint64 &  apricecategoryid,
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
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryWebCartRemoveTicket().

Friends And Related Function Documentation

friend class MTWebCartRemoveTicket_Private
friend

Referenced by MTWebCartRemoveTicket().


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