MagicSmoke  $VERSION$
MTGetOrderList Class Reference

get a complete list of orders starting at the time "oldest" More...

#include <srcMTGetOrderList.h>

Inheritance diagram for MTGetOrderList:
MTransaction

Public Member Functions

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

Static Public Member Functions

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

 MTGetOrderList (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 MTGetOrderList_Private
 

Detailed Description

get a complete list of orders starting at the time "oldest"

Constructor & Destructor Documentation

MTGetOrderList::MTGetOrderList ( const qint64 &  aoldest,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTGetOrderList_Private::in_oldest, and MTGetOrderList_Private.

MTGetOrderList::MTGetOrderList ( )

default constructor: generates an invalid transaction

References MTGetOrderList_Private.

MTGetOrderList::MTGetOrderList ( const MTGetOrderList t)

copy constructor: the two copies share their state

References MTGetOrderList_Private::attach().

MTGetOrderList::~MTGetOrderList ( )
virtual

deletes this instance

References MTGetOrderList_Private::detach().

Member Function Documentation

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

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

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

MTGetOrderList MTGetOrderList::query ( const qint64 &  aoldest,
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)
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryGetOrderList().

Friends And Related Function Documentation

friend class MTGetOrderList_Private
friend

Referenced by MTGetOrderList().


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