MagicSmoke  $VERSION$
MTGetOrdersByUser Class Reference

returns all orders created by the a specified user More...

#include <srcMTGetOrdersByUser.h>

Inheritance diagram for MTGetOrdersByUser:
MTransaction

Public Member Functions

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

Static Public Member Functions

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

 MTGetOrdersByUser (const qint64 &aoldest, const bool &aincludeall, const QString &ausername, 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 MTGetOrdersByUser_Private
 

Detailed Description

returns all orders created by the a specified user

Constructor & Destructor Documentation

MTGetOrdersByUser::MTGetOrdersByUser ( const qint64 &  aoldest,
const bool &  aincludeall,
const QString &  ausername,
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
ausernamethe name of the user to look for
ifaceID of the interface that the transaction will be sent on

References MTGetOrdersByUser_Private::in_includeall, MTGetOrdersByUser_Private::in_oldest, MTGetOrdersByUser_Private::in_username, and MTGetOrdersByUser_Private.

MTGetOrdersByUser::MTGetOrdersByUser ( )

default constructor: generates an invalid transaction

References MTGetOrdersByUser_Private.

MTGetOrdersByUser::MTGetOrdersByUser ( const MTGetOrdersByUser t)

copy constructor: the two copies share their state

References MTGetOrdersByUser_Private::attach().

MTGetOrdersByUser::~MTGetOrdersByUser ( )
virtual

deletes this instance

References MTGetOrdersByUser_Private::detach().

Member Function Documentation

MTGetOrdersByUser MTGetOrdersByUser::asyncQuery ( const qint64 &  aoldest,
const bool &  aincludeall,
const QString &  ausername,
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
ausernamethe name of the user to look for
ifaceID of the interface that the transaction will be sent on
void MTGetOrdersByUser::endQuery ( )
protectedvirtual
QList< MOCustomerInfo > MTGetOrdersByUser::getcustomers ( ) const
QList< MOOrderInfo > MTGetOrdersByUser::getorders ( ) const
MTGetOrdersByUser & MTGetOrdersByUser::operator= ( const MTGetOrdersByUser t)

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

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

MTGetOrdersByUser MTGetOrdersByUser::query ( const qint64 &  aoldest,
const bool &  aincludeall,
const QString &  ausername,
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
ausernamethe name of the user to look for
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryGetOrdersByUser().

Friends And Related Function Documentation

friend class MTGetOrdersByUser_Private
friend

Referenced by MTGetOrdersByUser().


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