MagicSmoke  $VERSION$
MTChangeCoupon Class Reference

Changes a coupon. More...

#include <srcMTChangeCoupon.h>

Inheritance diagram for MTChangeCoupon:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTChangeCoupon asyncQuery (const MOCoupon &acoupon, 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 MTChangeCoupon query (const MOCoupon &acoupon, 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

 MTChangeCoupon (const MOCoupon &acoupon, 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 MTChangeCoupon_Private
 

Detailed Description

Changes a coupon.

Constructor & Destructor Documentation

MTChangeCoupon::MTChangeCoupon ( const MOCoupon acoupon,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
acoupon
ifaceID of the interface that the transaction will be sent on

References MTChangeCoupon_Private::in_coupon, and MTChangeCoupon_Private.

MTChangeCoupon::MTChangeCoupon ( )

default constructor: generates an invalid transaction

References MTChangeCoupon_Private.

MTChangeCoupon::MTChangeCoupon ( const MTChangeCoupon t)

copy constructor: the two copies share their state

References MTChangeCoupon_Private::attach().

MTChangeCoupon::~MTChangeCoupon ( )
virtual

deletes this instance

References MTChangeCoupon_Private::detach().

Member Function Documentation

MTChangeCoupon MTChangeCoupon::asyncQuery ( const MOCoupon acoupon,
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
acoupon
ifaceID of the interface that the transaction will be sent on
void MTChangeCoupon::endQuery ( )
protectedvirtual
MTChangeCoupon & MTChangeCoupon::operator= ( const MTChangeCoupon t)

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

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

MTChangeCoupon MTChangeCoupon::query ( const MOCoupon acoupon,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
acoupon
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryChangeCoupon().

Friends And Related Function Documentation

friend class MTChangeCoupon_Private
friend

Referenced by MTChangeCoupon().


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