MagicSmoke  $VERSION$
MTDeleteOrderDocument Class Reference

Deletes a document associated with an order. Produces an error if the document does not exist. More...

#include <srcMTDeleteOrderDocument.h>

Inheritance diagram for MTDeleteOrderDocument:
MTransaction

Public Member Functions

 MTDeleteOrderDocument ()
 default constructor: generates an invalid transaction More...
 
 MTDeleteOrderDocument (const MTDeleteOrderDocument &)
 copy constructor: the two copies share their state More...
 
virtual ~MTDeleteOrderDocument ()
 deletes this instance More...
 
MTDeleteOrderDocumentoperator= (const MTDeleteOrderDocument &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTDeleteOrderDocument 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 MTDeleteOrderDocument 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

 MTDeleteOrderDocument (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 MTDeleteOrderDocument_Private
 

Detailed Description

Deletes a document associated with an order. Produces an error if the document does not exist.

Constructor & Destructor Documentation

MTDeleteOrderDocument::MTDeleteOrderDocument ( 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 MTDeleteOrderDocument_Private::in_filename, MTDeleteOrderDocument_Private::in_orderid, and MTDeleteOrderDocument_Private.

MTDeleteOrderDocument::MTDeleteOrderDocument ( )

default constructor: generates an invalid transaction

References MTDeleteOrderDocument_Private.

MTDeleteOrderDocument::MTDeleteOrderDocument ( const MTDeleteOrderDocument t)

copy constructor: the two copies share their state

References MTDeleteOrderDocument_Private::attach().

MTDeleteOrderDocument::~MTDeleteOrderDocument ( )
virtual

deletes this instance

References MTDeleteOrderDocument_Private::detach().

Member Function Documentation

MTDeleteOrderDocument MTDeleteOrderDocument::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 MTDeleteOrderDocument::endQuery ( )
protectedvirtual
MTDeleteOrderDocument & MTDeleteOrderDocument::operator= ( const MTDeleteOrderDocument t)

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

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

MTDeleteOrderDocument MTDeleteOrderDocument::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::queryDeleteOrderDocument().

Friends And Related Function Documentation

friend class MTDeleteOrderDocument_Private
friend

Referenced by MTDeleteOrderDocument().


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