MagicSmoke
$VERSION$
|
returns all orders that were purchased by a specific customer More...
#include <srcMTGetOrdersByCustomer.h>
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< MOOrderInfo > | getorders () const |
MTGetOrdersByCustomer & | operator= (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 |
returns all orders that were purchased by a specific customer
|
explicitprotected |
generates an instance from its properties
acustomerid | customer to select |
aoldest | unix timestamp for the oldest order to be returned (compared with ordertime) |
iface | ID 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().
|
virtual |
deletes this instance
References MTGetOrdersByCustomer_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
acustomerid | customer to select |
aoldest | unix timestamp for the oldest order to be returned (compared with ordertime) |
iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
QList< MOOrderInfo > MTGetOrdersByCustomer::getorders | ( | ) | const |
References MTGetOrdersByCustomer_Private::out_orders.
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().
|
static |
emits the query over the network and returns the finished transaction object
acustomerid | customer to select |
aoldest | unix timestamp for the oldest order to be returned (compared with ordertime) |
iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryGetOrdersByCustomer().
|
friend |
Referenced by MTGetOrdersByCustomer().