MagicSmoke  $VERSION$
MTGetOrdersByCustomer Class Reference

returns all orders that were purchased by a specific customer More...

#include <srcMTGetOrdersByCustomer.h>

Inheritance diagram for MTGetOrdersByCustomer:
MTransaction

Public Member Functions

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

Static Public Member Functions

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

 MTGetOrdersByCustomer (const qint64 &acustomerid, const qint64 &aoldest, 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 MTGetOrdersByCustomer_Private
 

Detailed Description

returns all orders that were purchased by a specific customer

Constructor & Destructor Documentation

MTGetOrdersByCustomer::MTGetOrdersByCustomer ( const qint64 &  acustomerid,
const qint64 &  aoldest,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTGetOrdersByCustomer_Private::in_customerid, MTGetOrdersByCustomer_Private::in_oldest, and MTGetOrdersByCustomer_Private.

MTGetOrdersByCustomer::MTGetOrdersByCustomer ( )

default constructor: generates an invalid transaction

References MTGetOrdersByCustomer_Private.

MTGetOrdersByCustomer::MTGetOrdersByCustomer ( const MTGetOrdersByCustomer t)

copy constructor: the two copies share their state

References MTGetOrdersByCustomer_Private::attach().

MTGetOrdersByCustomer::~MTGetOrdersByCustomer ( )
virtual

deletes this instance

References MTGetOrdersByCustomer_Private::detach().

Member Function Documentation

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

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

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

MTGetOrdersByCustomer MTGetOrdersByCustomer::query ( const qint64 &  acustomerid,
const qint64 &  aoldest,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::queryGetOrdersByCustomer().

Friends And Related Function Documentation

friend class MTGetOrdersByCustomer_Private
friend

Referenced by MTGetOrdersByCustomer().


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