MagicSmoke
$VERSION$
|
Mildly privileged users: change the delivery and/or invoice address of an order. More...
#include <srcMTChangeOrderAddress.h>
Public Member Functions | |
MTChangeOrderAddress () | |
default constructor: generates an invalid transaction More... | |
MTChangeOrderAddress (const MTChangeOrderAddress &) | |
copy constructor: the two copies share their state More... | |
virtual | ~MTChangeOrderAddress () |
deletes this instance More... | |
Q_SLOT Nullable< MOOrder > | getorder () const |
the order after the change has become active. More... | |
MTChangeOrderAddress & | operator= (const MTChangeOrderAddress &) |
copy assignment: the copy shares the state of the original object More... | |
Static Public Member Functions | |
static MTChangeOrderAddress | asyncQuery (const qint64 &aorderid, const bool &asetinvoiceaddr, const qint64 &ainvoiceaddr, const bool &asetdeliveryaddr, const qint64 &adeliveryaddr, 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 MTChangeOrderAddress | query (const qint64 &aorderid, const bool &asetinvoiceaddr, const qint64 &ainvoiceaddr, const bool &asetdeliveryaddr, const qint64 &adeliveryaddr, 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 | |
MTChangeOrderAddress (const qint64 &aorderid, const bool &asetinvoiceaddr, const qint64 &ainvoiceaddr, const bool &asetdeliveryaddr, const qint64 &adeliveryaddr, 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 | MTChangeOrderAddress_Private |
Mildly privileged users: change the delivery and/or invoice address of an order.
|
explicitprotected |
generates an instance from its properties
aorderid | the ID of the order, this is mandatory |
asetinvoiceaddr | if true: the value in invoiceaddr is actually used, if false: the invoice address is left unchanged |
ainvoiceaddr | the ID of the invoice address, <0 for deleting the invoice address |
asetdeliveryaddr | if true: the value in deliveryaddr is actually used, if false: the delivery address is left unchanged |
adeliveryaddr | the ID of the delivery address, <0 for deleting the delivery address |
iface | ID of the interface that the transaction will be sent on |
References MTChangeOrderAddress_Private::in_deliveryaddr, MTChangeOrderAddress_Private::in_invoiceaddr, MTChangeOrderAddress_Private::in_orderid, MTChangeOrderAddress_Private::in_setdeliveryaddr, MTChangeOrderAddress_Private::in_setinvoiceaddr, and MTChangeOrderAddress_Private.
MTChangeOrderAddress::MTChangeOrderAddress | ( | ) |
default constructor: generates an invalid transaction
References MTChangeOrderAddress_Private.
MTChangeOrderAddress::MTChangeOrderAddress | ( | const MTChangeOrderAddress & | t | ) |
copy constructor: the two copies share their state
References MTChangeOrderAddress_Private::attach().
|
virtual |
deletes this instance
References MTChangeOrderAddress_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
aorderid | the ID of the order, this is mandatory |
asetinvoiceaddr | if true: the value in invoiceaddr is actually used, if false: the invoice address is left unchanged |
ainvoiceaddr | the ID of the invoice address, <0 for deleting the invoice address |
asetdeliveryaddr | if true: the value in deliveryaddr is actually used, if false: the delivery address is left unchanged |
adeliveryaddr | the ID of the delivery address, <0 for deleting the delivery address |
iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
Nullable< MOOrder > MTChangeOrderAddress::getorder | ( | ) | const |
the order after the change has become active.
References MTChangeOrderAddress_Private::out_order.
MTChangeOrderAddress & MTChangeOrderAddress::operator= | ( | const MTChangeOrderAddress & | t | ) |
copy assignment: the copy shares the state of the original object
References MTChangeOrderAddress_Private::attach(), and MTChangeOrderAddress_Private::detach().
|
static |
emits the query over the network and returns the finished transaction object
aorderid | the ID of the order, this is mandatory |
asetinvoiceaddr | if true: the value in invoiceaddr is actually used, if false: the invoice address is left unchanged |
ainvoiceaddr | the ID of the invoice address, <0 for deleting the invoice address |
asetdeliveryaddr | if true: the value in deliveryaddr is actually used, if false: the delivery address is left unchanged |
adeliveryaddr | the ID of the delivery address, <0 for deleting the delivery address |
iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryChangeOrderAddress().
|
friend |
Referenced by MTChangeOrderAddress().