MagicSmoke  $VERSION$
MTGetMyOrders Class Reference

returns all orders created by the current user More...

#include <srcMTGetMyOrders.h>

Inheritance diagram for MTGetMyOrders:
MTransaction

Public Member Functions

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

Static Public Member Functions

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

 MTGetMyOrders (const qint64 &aoldest, const bool &aincludeall, 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 MTGetMyOrders_Private
 

Detailed Description

returns all orders created by the current user

Constructor & Destructor Documentation

MTGetMyOrders::MTGetMyOrders ( const qint64 &  aoldest,
const bool &  aincludeall,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
aoldestunix timestamp for the oldest order to be returned (compared with ordertime)
aincludeallif true: include all orders that the user ever touched
ifaceID of the interface that the transaction will be sent on

References MTGetMyOrders_Private::in_includeall, MTGetMyOrders_Private::in_oldest, and MTGetMyOrders_Private.

MTGetMyOrders::MTGetMyOrders ( )

default constructor: generates an invalid transaction

References MTGetMyOrders_Private.

MTGetMyOrders::MTGetMyOrders ( const MTGetMyOrders t)

copy constructor: the two copies share their state

References MTGetMyOrders_Private::attach().

MTGetMyOrders::~MTGetMyOrders ( )
virtual

deletes this instance

References MTGetMyOrders_Private::detach().

Member Function Documentation

MTGetMyOrders MTGetMyOrders::asyncQuery ( const qint64 &  aoldest,
const bool &  aincludeall,
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)
aincludeallif true: include all orders that the user ever touched
ifaceID of the interface that the transaction will be sent on
void MTGetMyOrders::endQuery ( )
protectedvirtual
QList< MOCustomerInfo > MTGetMyOrders::getcustomers ( ) const
QList< MOOrderInfo > MTGetMyOrders::getorders ( ) const
MTGetMyOrders & MTGetMyOrders::operator= ( const MTGetMyOrders t)

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

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

MTGetMyOrders MTGetMyOrders::query ( const qint64 &  aoldest,
const bool &  aincludeall,
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)
aincludeallif true: include all orders that the user ever touched
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryGetMyOrders().

Friends And Related Function Documentation

friend class MTGetMyOrders_Private
friend

Referenced by MTGetMyOrders().


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