MagicSmoke  $VERSION$
MTGetVoucher Class Reference

returns a specific voucher with detailed info More...

#include <srcMTGetVoucher.h>

Inheritance diagram for MTGetVoucher:
MTransaction

Public Member Functions

 MTGetVoucher ()
 default constructor: generates an invalid transaction More...
 
 MTGetVoucher (const MTGetVoucher &)
 copy constructor: the two copies share their state More...
 
virtual ~MTGetVoucher ()
 deletes this instance More...
 
Q_SLOT Nullable< bool > getispaidfor () const
 
Q_SLOT Nullable< MOVouchergetvoucher () const
 
MTGetVoucheroperator= (const MTGetVoucher &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

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

 MTGetVoucher (const QString &avoucherid, 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 MTGetVoucher_Private
 

Detailed Description

returns a specific voucher with detailed info

Constructor & Destructor Documentation

MTGetVoucher::MTGetVoucher ( const QString &  avoucherid,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTGetVoucher_Private::in_voucherid, and MTGetVoucher_Private.

MTGetVoucher::MTGetVoucher ( )

default constructor: generates an invalid transaction

References MTGetVoucher_Private.

MTGetVoucher::MTGetVoucher ( const MTGetVoucher t)

copy constructor: the two copies share their state

References MTGetVoucher_Private::attach().

MTGetVoucher::~MTGetVoucher ( )
virtual

deletes this instance

References MTGetVoucher_Private::detach().

Member Function Documentation

MTGetVoucher MTGetVoucher::asyncQuery ( const QString &  avoucherid,
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
avoucherid
ifaceID of the interface that the transaction will be sent on
void MTGetVoucher::endQuery ( )
protectedvirtual
Nullable< bool > MTGetVoucher::getispaidfor ( ) const
Nullable< MOVoucher > MTGetVoucher::getvoucher ( ) const
MTGetVoucher & MTGetVoucher::operator= ( const MTGetVoucher t)

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

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

MTGetVoucher MTGetVoucher::query ( const QString &  avoucherid,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::queryGetVoucher().

Friends And Related Function Documentation

friend class MTGetVoucher_Private
friend

Referenced by MTGetVoucher().


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