MagicSmoke  $VERSION$
MTSetPaymentType Class Reference

creates/changes a payment type More...

#include <srcMTSetPaymentType.h>

Inheritance diagram for MTSetPaymentType:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTSetPaymentType asyncQuery (const MOPaymentType &apaytype, 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 MTSetPaymentType query (const MOPaymentType &apaytype, 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

 MTSetPaymentType (const MOPaymentType &apaytype, 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 MTSetPaymentType_Private
 

Detailed Description

creates/changes a payment type

Constructor & Destructor Documentation

MTSetPaymentType::MTSetPaymentType ( const MOPaymentType apaytype,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTSetPaymentType_Private::in_paytype, and MTSetPaymentType_Private.

MTSetPaymentType::MTSetPaymentType ( )

default constructor: generates an invalid transaction

References MTSetPaymentType_Private.

MTSetPaymentType::MTSetPaymentType ( const MTSetPaymentType t)

copy constructor: the two copies share their state

References MTSetPaymentType_Private::attach().

MTSetPaymentType::~MTSetPaymentType ( )
virtual

deletes this instance

References MTSetPaymentType_Private::detach().

Member Function Documentation

MTSetPaymentType MTSetPaymentType::asyncQuery ( const MOPaymentType apaytype,
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
apaytype
ifaceID of the interface that the transaction will be sent on
void MTSetPaymentType::endQuery ( )
protectedvirtual
Nullable< MOPaymentType > MTSetPaymentType::getpaytype ( ) const
MTSetPaymentType & MTSetPaymentType::operator= ( const MTSetPaymentType t)

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

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

MTSetPaymentType MTSetPaymentType::query ( const MOPaymentType apaytype,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::querySetPaymentType().

Friends And Related Function Documentation

friend class MTSetPaymentType_Private
friend

Referenced by MTSetPaymentType().


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