MagicSmoke  $VERSION$
MTWebCartAddVoucher Class Reference

Called from the Web UI only: adds vouchers. More...

#include <srcMTWebCartAddVoucher.h>

Inheritance diagram for MTWebCartAddVoucher:
MTransaction

Public Member Functions

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

Static Public Member Functions

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

 MTWebCartAddVoucher (const QString &acartid, const qint64 &aprice, 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 MTWebCartAddVoucher_Private
 

Detailed Description

Called from the Web UI only: adds vouchers.

Constructor & Destructor Documentation

MTWebCartAddVoucher::MTWebCartAddVoucher ( const QString &  acartid,
const qint64 &  aprice,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
acartidThe cart to add into
apriceThe price of the voucher
ifaceID of the interface that the transaction will be sent on

References MTWebCartAddVoucher_Private::in_cartid, MTWebCartAddVoucher_Private::in_price, and MTWebCartAddVoucher_Private.

MTWebCartAddVoucher::MTWebCartAddVoucher ( )

default constructor: generates an invalid transaction

References MTWebCartAddVoucher_Private.

MTWebCartAddVoucher::MTWebCartAddVoucher ( const MTWebCartAddVoucher t)

copy constructor: the two copies share their state

References MTWebCartAddVoucher_Private::attach().

MTWebCartAddVoucher::~MTWebCartAddVoucher ( )
virtual

deletes this instance

References MTWebCartAddVoucher_Private::detach().

Member Function Documentation

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

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

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

MTWebCartAddVoucher MTWebCartAddVoucher::query ( const QString &  acartid,
const qint64 &  aprice,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
acartidThe cart to add into
apriceThe price of the voucher
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryWebCartAddVoucher().

Friends And Related Function Documentation

friend class MTWebCartAddVoucher_Private
friend

Referenced by MTWebCartAddVoucher().


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