MagicSmoke  $VERSION$
MTGetCoupon Class Reference

Retrieves details about a single coupon. More...

#include <srcMTGetCoupon.h>

Inheritance diagram for MTGetCoupon:
MTransaction

Public Member Functions

 MTGetCoupon ()
 default constructor: generates an invalid transaction More...
 
 MTGetCoupon (const MTGetCoupon &)
 copy constructor: the two copies share their state More...
 
virtual ~MTGetCoupon ()
 deletes this instance More...
 
Q_SLOT Nullable< MOCoupongetcoupon () const
 
MTGetCouponoperator= (const MTGetCoupon &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTGetCoupon asyncQuery (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 MTGetCoupon query (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

 MTGetCoupon (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 MTGetCoupon_Private
 

Detailed Description

Retrieves details about a single coupon.

Constructor & Destructor Documentation

MTGetCoupon::MTGetCoupon ( const QString &  acouponid,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTGetCoupon_Private::in_couponid, and MTGetCoupon_Private.

MTGetCoupon::MTGetCoupon ( )

default constructor: generates an invalid transaction

References MTGetCoupon_Private.

MTGetCoupon::MTGetCoupon ( const MTGetCoupon t)

copy constructor: the two copies share their state

References MTGetCoupon_Private::attach().

MTGetCoupon::~MTGetCoupon ( )
virtual

deletes this instance

References MTGetCoupon_Private::detach().

Member Function Documentation

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

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

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

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

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

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

Referenced by MInterface::queryGetCoupon().

Friends And Related Function Documentation

friend class MTGetCoupon_Private
friend

Referenced by MTGetCoupon().


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