MagicSmoke  $VERSION$
MTWebCartAddCoupon Class Reference

Called from Web UI only: adds a coupon to the cart. More...

#include <srcMTWebCartAddCoupon.h>

Inheritance diagram for MTWebCartAddCoupon:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTWebCartAddCoupon asyncQuery (const QString &acartid, const QString &acouponid, 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 MTWebCartAddCoupon query (const QString &acartid, const QString &acouponid, 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

 MTWebCartAddCoupon (const QString &acartid, const QString &acouponid, 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 MTWebCartAddCoupon_Private
 

Detailed Description

Called from Web UI only: adds a coupon to the cart.

Constructor & Destructor Documentation

MTWebCartAddCoupon::MTWebCartAddCoupon ( const QString &  acartid,
const QString &  acouponid,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
acartidThe cart to add into
acouponidThe coupon to add
ifaceID of the interface that the transaction will be sent on

References MTWebCartAddCoupon_Private::in_cartid, MTWebCartAddCoupon_Private::in_couponid, and MTWebCartAddCoupon_Private.

MTWebCartAddCoupon::MTWebCartAddCoupon ( )

default constructor: generates an invalid transaction

References MTWebCartAddCoupon_Private.

MTWebCartAddCoupon::MTWebCartAddCoupon ( const MTWebCartAddCoupon t)

copy constructor: the two copies share their state

References MTWebCartAddCoupon_Private::attach().

MTWebCartAddCoupon::~MTWebCartAddCoupon ( )
virtual

deletes this instance

References MTWebCartAddCoupon_Private::detach().

Member Function Documentation

MTWebCartAddCoupon MTWebCartAddCoupon::asyncQuery ( const QString &  acartid,
const QString &  acouponid,
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
acouponidThe coupon to add
ifaceID of the interface that the transaction will be sent on
void MTWebCartAddCoupon::endQuery ( )
protectedvirtual
MTWebCartAddCoupon & MTWebCartAddCoupon::operator= ( const MTWebCartAddCoupon t)

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

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

MTWebCartAddCoupon MTWebCartAddCoupon::query ( const QString &  acartid,
const QString &  acouponid,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
acartidThe cart to add into
acouponidThe coupon to add
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryWebCartAddCoupon().

Friends And Related Function Documentation

friend class MTWebCartAddCoupon_Private
friend

Referenced by MTWebCartAddCoupon().


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