MagicSmoke  $VERSION$
MTGetOrderByBarcode Class Reference

retrieves the order in which a specific ticket or voucher was bought More...

#include <srcMTGetOrderByBarcode.h>

Inheritance diagram for MTGetOrderByBarcode:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTGetOrderByBarcode asyncQuery (const QString &abarcode, 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 MTGetOrderByBarcode query (const QString &abarcode, 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

 MTGetOrderByBarcode (const QString &abarcode, 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 MTGetOrderByBarcode_Private
 

Detailed Description

retrieves the order in which a specific ticket or voucher was bought

Constructor & Destructor Documentation

MTGetOrderByBarcode::MTGetOrderByBarcode ( const QString &  abarcode,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
abarcode
ifaceID of the interface that the transaction will be sent on

References MTGetOrderByBarcode_Private::in_barcode, and MTGetOrderByBarcode_Private.

MTGetOrderByBarcode::MTGetOrderByBarcode ( )

default constructor: generates an invalid transaction

References MTGetOrderByBarcode_Private.

MTGetOrderByBarcode::MTGetOrderByBarcode ( const MTGetOrderByBarcode t)

copy constructor: the two copies share their state

References MTGetOrderByBarcode_Private::attach().

MTGetOrderByBarcode::~MTGetOrderByBarcode ( )
virtual

deletes this instance

References MTGetOrderByBarcode_Private::detach().

Member Function Documentation

MTGetOrderByBarcode MTGetOrderByBarcode::asyncQuery ( const QString &  abarcode,
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
abarcode
ifaceID of the interface that the transaction will be sent on
void MTGetOrderByBarcode::endQuery ( )
protectedvirtual
Nullable< MOOrder > MTGetOrderByBarcode::getorder ( ) const
MTGetOrderByBarcode & MTGetOrderByBarcode::operator= ( const MTGetOrderByBarcode t)

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

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

MTGetOrderByBarcode MTGetOrderByBarcode::query ( const QString &  abarcode,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
abarcode
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryGetOrderByBarcode().

Friends And Related Function Documentation

friend class MTGetOrderByBarcode_Private
friend

Referenced by MTGetOrderByBarcode().


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