MagicSmoke  $VERSION$
MTGetOrderDocument Class Reference

Gets a document associated with an order. More...

#include <srcMTGetOrderDocument.h>

Inheritance diagram for MTGetOrderDocument:
MTransaction

Public Member Functions

 MTGetOrderDocument ()
 default constructor: generates an invalid transaction More...
 
 MTGetOrderDocument (const MTGetOrderDocument &)
 copy constructor: the two copies share their state More...
 
virtual ~MTGetOrderDocument ()
 deletes this instance More...
 
Q_SLOT Nullable< MOOrderDocumentgetdocument () const
 
MTGetOrderDocumentoperator= (const MTGetOrderDocument &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTGetOrderDocument asyncQuery (const qint64 &aorderid, const QString &afilename, 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 MTGetOrderDocument query (const qint64 &aorderid, const QString &afilename, 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

 MTGetOrderDocument (const qint64 &aorderid, const QString &afilename, 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 MTGetOrderDocument_Private
 

Detailed Description

Gets a document associated with an order.

Constructor & Destructor Documentation

MTGetOrderDocument::MTGetOrderDocument ( const qint64 &  aorderid,
const QString &  afilename,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
aorderid
afilename
ifaceID of the interface that the transaction will be sent on

References MTGetOrderDocument_Private::in_filename, MTGetOrderDocument_Private::in_orderid, and MTGetOrderDocument_Private.

MTGetOrderDocument::MTGetOrderDocument ( )

default constructor: generates an invalid transaction

References MTGetOrderDocument_Private.

MTGetOrderDocument::MTGetOrderDocument ( const MTGetOrderDocument t)

copy constructor: the two copies share their state

References MTGetOrderDocument_Private::attach().

MTGetOrderDocument::~MTGetOrderDocument ( )
virtual

deletes this instance

References MTGetOrderDocument_Private::detach().

Member Function Documentation

MTGetOrderDocument MTGetOrderDocument::asyncQuery ( const qint64 &  aorderid,
const QString &  afilename,
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
aorderid
afilename
ifaceID of the interface that the transaction will be sent on
void MTGetOrderDocument::endQuery ( )
protectedvirtual
Nullable< MOOrderDocument > MTGetOrderDocument::getdocument ( ) const
MTGetOrderDocument & MTGetOrderDocument::operator= ( const MTGetOrderDocument t)

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

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

MTGetOrderDocument MTGetOrderDocument::query ( const qint64 &  aorderid,
const QString &  afilename,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
aorderid
afilename
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryGetOrderDocument().

Friends And Related Function Documentation

friend class MTGetOrderDocument_Private
friend

Referenced by MTGetOrderDocument().


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