MagicSmoke  $VERSION$
MTGetOrdersByCoupon Class Reference

#include <srcMTGetOrdersByCoupon.h>

Inheritance diagram for MTGetOrdersByCoupon:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTGetOrdersByCoupon asyncQuery (const qint64 &aoldest, 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 MTGetOrdersByCoupon query (const qint64 &aoldest, 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

 MTGetOrdersByCoupon (const qint64 &aoldest, 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 MTGetOrdersByCoupon_Private
 

Constructor & Destructor Documentation

MTGetOrdersByCoupon::MTGetOrdersByCoupon ( const qint64 &  aoldest,
const QString &  acouponid,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
aoldestunix timestamp for the oldest order to be returned (compared with ordertime)
acouponid
ifaceID of the interface that the transaction will be sent on

References MTGetOrdersByCoupon_Private::in_couponid, MTGetOrdersByCoupon_Private::in_oldest, and MTGetOrdersByCoupon_Private.

MTGetOrdersByCoupon::MTGetOrdersByCoupon ( )

default constructor: generates an invalid transaction

References MTGetOrdersByCoupon_Private.

MTGetOrdersByCoupon::MTGetOrdersByCoupon ( const MTGetOrdersByCoupon t)

copy constructor: the two copies share their state

References MTGetOrdersByCoupon_Private::attach().

MTGetOrdersByCoupon::~MTGetOrdersByCoupon ( )
virtual

deletes this instance

References MTGetOrdersByCoupon_Private::detach().

Member Function Documentation

MTGetOrdersByCoupon MTGetOrdersByCoupon::asyncQuery ( const qint64 &  aoldest,
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
aoldestunix timestamp for the oldest order to be returned (compared with ordertime)
acouponid
ifaceID of the interface that the transaction will be sent on
void MTGetOrdersByCoupon::endQuery ( )
protectedvirtual
QList< MOCustomerInfo > MTGetOrdersByCoupon::getcustomers ( ) const
QList< MOOrderInfo > MTGetOrdersByCoupon::getorders ( ) const
MTGetOrdersByCoupon & MTGetOrdersByCoupon::operator= ( const MTGetOrdersByCoupon t)

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

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

MTGetOrdersByCoupon MTGetOrdersByCoupon::query ( const qint64 &  aoldest,
const QString &  acouponid,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
aoldestunix timestamp for the oldest order to be returned (compared with ordertime)
acouponid
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryGetOrdersByCoupon().

Friends And Related Function Documentation

friend class MTGetOrdersByCoupon_Private
friend

Referenced by MTGetOrdersByCoupon().


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