MagicSmoke
$VERSION$
|
returns all orders created by the a specified user More...
#include <srcMTGetOrdersByUser.h>
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< MOCustomerInfo > | getcustomers () const |
Q_SLOT QList< MOOrderInfo > | getorders () const |
MTGetOrdersByUser & | operator= (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 |
returns all orders created by the a specified user
|
explicitprotected |
generates an instance from its properties
aoldest | unix timestamp for the oldest order to be returned (compared with ordertime) |
aincludeall | if true: include all orders that the user ever touched |
ausername | the name of the user to look for |
iface | ID 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().
|
virtual |
deletes this instance
References MTGetOrdersByUser_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
aoldest | unix timestamp for the oldest order to be returned (compared with ordertime) |
aincludeall | if true: include all orders that the user ever touched |
ausername | the name of the user to look for |
iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
QList< MOCustomerInfo > MTGetOrdersByUser::getcustomers | ( | ) | const |
References MTGetOrdersByUser_Private::out_customers.
QList< MOOrderInfo > MTGetOrdersByUser::getorders | ( | ) | const |
References MTGetOrdersByUser_Private::out_orders.
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().
|
static |
emits the query over the network and returns the finished transaction object
aoldest | unix timestamp for the oldest order to be returned (compared with ordertime) |
aincludeall | if true: include all orders that the user ever touched |
ausername | the name of the user to look for |
iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryGetOrdersByUser().
|
friend |
Referenced by MTGetOrdersByUser().