MagicSmoke  $VERSION$
MTGetOrdersByEvents Class Reference

returns all orders that match a specific list of events More...

#include <srcMTGetOrdersByEvents.h>

Inheritance diagram for MTGetOrdersByEvents:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTGetOrdersByEvents asyncQuery (const QList< qint64 > &aevents, 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 MTGetOrdersByEvents query (const QList< qint64 > &aevents, 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

 MTGetOrdersByEvents (const QList< qint64 > &aevents, 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 MTGetOrdersByEvents_Private
 

Detailed Description

returns all orders that match a specific list of events

Constructor & Destructor Documentation

MTGetOrdersByEvents::MTGetOrdersByEvents ( const QList< qint64 > &  aevents,
const qint64 &  aoldest,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
aeventslist of event ids 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 MTGetOrdersByEvents_Private::in_events, MTGetOrdersByEvents_Private::in_oldest, and MTGetOrdersByEvents_Private.

MTGetOrdersByEvents::MTGetOrdersByEvents ( )

default constructor: generates an invalid transaction

References MTGetOrdersByEvents_Private.

MTGetOrdersByEvents::MTGetOrdersByEvents ( const MTGetOrdersByEvents t)

copy constructor: the two copies share their state

References MTGetOrdersByEvents_Private::attach().

MTGetOrdersByEvents::~MTGetOrdersByEvents ( )
virtual

deletes this instance

References MTGetOrdersByEvents_Private::detach().

Member Function Documentation

MTGetOrdersByEvents MTGetOrdersByEvents::asyncQuery ( const QList< qint64 > &  aevents,
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
aeventslist of event ids 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 MTGetOrdersByEvents::endQuery ( )
protectedvirtual
QList< MOCustomerInfo > MTGetOrdersByEvents::getcustomers ( ) const
QList< MOOrderInfo > MTGetOrdersByEvents::getorders ( ) const
MTGetOrdersByEvents & MTGetOrdersByEvents::operator= ( const MTGetOrdersByEvents t)

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

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

MTGetOrdersByEvents MTGetOrdersByEvents::query ( const QList< qint64 > &  aevents,
const qint64 &  aoldest,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
aeventslist of event ids 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::queryGetOrdersByEvents().

Friends And Related Function Documentation

friend class MTGetOrdersByEvents_Private
friend

Referenced by MTGetOrdersByEvents().


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