MagicSmoke  $VERSION$
MTGetCouponList Class Reference

Retrieves all Coupon IDs. More...

#include <srcMTGetCouponList.h>

Inheritance diagram for MTGetCouponList:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTGetCouponList 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 MTGetCouponList 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

 MTGetCouponList (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 MTGetCouponList_Private
 

Detailed Description

Retrieves all Coupon IDs.

Constructor & Destructor Documentation

MTGetCouponList::MTGetCouponList ( 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 MTGetCouponList_Private::in_couponid, and MTGetCouponList_Private.

MTGetCouponList::MTGetCouponList ( )

default constructor: generates an invalid transaction

References MTGetCouponList_Private.

MTGetCouponList::MTGetCouponList ( const MTGetCouponList t)

copy constructor: the two copies share their state

References MTGetCouponList_Private::attach().

MTGetCouponList::~MTGetCouponList ( )
virtual

deletes this instance

References MTGetCouponList_Private::detach().

Member Function Documentation

MTGetCouponList MTGetCouponList::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 MTGetCouponList::endQuery ( )
protectedvirtual
QList< MOCouponInfo > MTGetCouponList::getcoupons ( ) const
MTGetCouponList & MTGetCouponList::operator= ( const MTGetCouponList t)

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

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

MTGetCouponList MTGetCouponList::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::queryGetCouponList().

Friends And Related Function Documentation

friend class MTGetCouponList_Private
friend

Referenced by MTGetCouponList().


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