MagicSmoke  $VERSION$
MTChangeOrderAddress Class Reference

Mildly privileged users: change the delivery and/or invoice address of an order. More...

#include <srcMTChangeOrderAddress.h>

Inheritance diagram for MTChangeOrderAddress:
MTransaction

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< MOOrdergetorder () const
 the order after the change has become active. More...
 
MTChangeOrderAddressoperator= (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
 

Detailed Description

Mildly privileged users: change the delivery and/or invoice address of an order.

Constructor & Destructor Documentation

MTChangeOrderAddress::MTChangeOrderAddress ( const qint64 &  aorderid,
const bool &  asetinvoiceaddr,
const qint64 &  ainvoiceaddr,
const bool &  asetdeliveryaddr,
const qint64 &  adeliveryaddr,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
aorderidthe ID of the order, this is mandatory
asetinvoiceaddrif true: the value in invoiceaddr is actually used, if false: the invoice address is left unchanged
ainvoiceaddrthe ID of the invoice address, <0 for deleting the invoice address
asetdeliveryaddrif true: the value in deliveryaddr is actually used, if false: the delivery address is left unchanged
adeliveryaddrthe ID of the delivery address, <0 for deleting the delivery address
ifaceID 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().

MTChangeOrderAddress::~MTChangeOrderAddress ( )
virtual

deletes this instance

References MTChangeOrderAddress_Private::detach().

Member Function Documentation

MTChangeOrderAddress MTChangeOrderAddress::asyncQuery ( const qint64 &  aorderid,
const bool &  asetinvoiceaddr,
const qint64 &  ainvoiceaddr,
const bool &  asetdeliveryaddr,
const qint64 &  adeliveryaddr,
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
aorderidthe ID of the order, this is mandatory
asetinvoiceaddrif true: the value in invoiceaddr is actually used, if false: the invoice address is left unchanged
ainvoiceaddrthe ID of the invoice address, <0 for deleting the invoice address
asetdeliveryaddrif true: the value in deliveryaddr is actually used, if false: the delivery address is left unchanged
adeliveryaddrthe ID of the delivery address, <0 for deleting the delivery address
ifaceID of the interface that the transaction will be sent on
void MTChangeOrderAddress::endQuery ( )
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().

MTChangeOrderAddress MTChangeOrderAddress::query ( const qint64 &  aorderid,
const bool &  asetinvoiceaddr,
const qint64 &  ainvoiceaddr,
const bool &  asetdeliveryaddr,
const qint64 &  adeliveryaddr,
QString  iface = "MagicSmoke" 
)
static

emits the query over the network and returns the finished transaction object

Parameters
aorderidthe ID of the order, this is mandatory
asetinvoiceaddrif true: the value in invoiceaddr is actually used, if false: the invoice address is left unchanged
ainvoiceaddrthe ID of the invoice address, <0 for deleting the invoice address
asetdeliveryaddrif true: the value in deliveryaddr is actually used, if false: the delivery address is left unchanged
adeliveryaddrthe ID of the delivery address, <0 for deleting the delivery address
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryChangeOrderAddress().

Friends And Related Function Documentation

friend class MTChangeOrderAddress_Private
friend

Referenced by MTChangeOrderAddress().


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