MagicSmoke  $VERSION$
MTOrderMarkShipped Class Reference

#include <srcMTOrderMarkShipped.h>

Inheritance diagram for MTOrderMarkShipped:
MTransaction

Public Member Functions

 MTOrderMarkShipped ()
 default constructor: generates an invalid transaction More...
 
 MTOrderMarkShipped (const MTOrderMarkShipped &)
 copy constructor: the two copies share their state More...
 
virtual ~MTOrderMarkShipped ()
 deletes this instance More...
 
Q_SLOT Nullable< MOOrdergetorder () const
 a fresh copy of the changed order More...
 
MTOrderMarkShippedoperator= (const MTOrderMarkShipped &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTOrderMarkShipped asyncQuery (const qint64 &aorderid, const qint64 &ashiptime, 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 MTOrderMarkShipped query (const qint64 &aorderid, const qint64 &ashiptime, 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

 MTOrderMarkShipped (const qint64 &aorderid, const qint64 &ashiptime, 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 MTOrderMarkShipped_Private
 

Constructor & Destructor Documentation

MTOrderMarkShipped::MTOrderMarkShipped ( const qint64 &  aorderid,
const qint64 &  ashiptime,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
aorderidThe order to be marked
ashiptimeThe time when it was shipped. If the user does not have the SetTime privilege or if this property is <=0 the current date/time is set instead.
ifaceID of the interface that the transaction will be sent on

References MTOrderMarkShipped_Private::in_orderid, MTOrderMarkShipped_Private::in_shiptime, and MTOrderMarkShipped_Private.

MTOrderMarkShipped::MTOrderMarkShipped ( )

default constructor: generates an invalid transaction

References MTOrderMarkShipped_Private.

MTOrderMarkShipped::MTOrderMarkShipped ( const MTOrderMarkShipped t)

copy constructor: the two copies share their state

References MTOrderMarkShipped_Private::attach().

MTOrderMarkShipped::~MTOrderMarkShipped ( )
virtual

deletes this instance

References MTOrderMarkShipped_Private::detach().

Member Function Documentation

MTOrderMarkShipped MTOrderMarkShipped::asyncQuery ( const qint64 &  aorderid,
const qint64 &  ashiptime,
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 order to be marked
ashiptimeThe time when it was shipped. If the user does not have the SetTime privilege or if this property is <=0 the current date/time is set instead.
ifaceID of the interface that the transaction will be sent on
void MTOrderMarkShipped::endQuery ( )
protectedvirtual
Nullable< MOOrder > MTOrderMarkShipped::getorder ( ) const

a fresh copy of the changed order

References MTOrderMarkShipped_Private::out_order.

MTOrderMarkShipped & MTOrderMarkShipped::operator= ( const MTOrderMarkShipped t)

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

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

MTOrderMarkShipped MTOrderMarkShipped::query ( const qint64 &  aorderid,
const qint64 &  ashiptime,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
aorderidThe order to be marked
ashiptimeThe time when it was shipped. If the user does not have the SetTime privilege or if this property is <=0 the current date/time is set instead.
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryOrderMarkShipped().

Friends And Related Function Documentation

friend class MTOrderMarkShipped_Private
friend

Referenced by MTOrderMarkShipped().


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