MagicSmoke  $VERSION$
MTGetCustomer Class Reference

returns detailed info about a customer (excluding password) More...

#include <srcMTGetCustomer.h>

Inheritance diagram for MTGetCustomer:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTGetCustomer asyncQuery (const qint64 &acustomerid, 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 MTGetCustomer query (const qint64 &acustomerid, 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

 MTGetCustomer (const qint64 &acustomerid, 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 MTGetCustomer_Private
 

Detailed Description

returns detailed info about a customer (excluding password)

Constructor & Destructor Documentation

MTGetCustomer::MTGetCustomer ( const qint64 &  acustomerid,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTGetCustomer_Private::in_customerid, and MTGetCustomer_Private.

MTGetCustomer::MTGetCustomer ( )

default constructor: generates an invalid transaction

References MTGetCustomer_Private.

MTGetCustomer::MTGetCustomer ( const MTGetCustomer t)

copy constructor: the two copies share their state

References MTGetCustomer_Private::attach().

MTGetCustomer::~MTGetCustomer ( )
virtual

deletes this instance

References MTGetCustomer_Private::detach().

Member Function Documentation

MTGetCustomer MTGetCustomer::asyncQuery ( const qint64 &  acustomerid,
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
acustomerid
ifaceID of the interface that the transaction will be sent on
void MTGetCustomer::endQuery ( )
protectedvirtual
Nullable< MOCustomer > MTGetCustomer::getcustomer ( ) const
MTGetCustomer & MTGetCustomer::operator= ( const MTGetCustomer t)

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

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

MTGetCustomer MTGetCustomer::query ( const qint64 &  acustomerid,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::queryGetCustomer().

Friends And Related Function Documentation

friend class MTGetCustomer_Private
friend

Referenced by MTGetCustomer().


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