MagicSmoke  $VERSION$
MTCreateCustomer Class Reference

creates a new customer More...

#include <srcMTCreateCustomer.h>

Inheritance diagram for MTCreateCustomer:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTCreateCustomer asyncQuery (const MOCustomer &acustomer, 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 MTCreateCustomer query (const MOCustomer &acustomer, 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

 MTCreateCustomer (const MOCustomer &acustomer, 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 MTCreateCustomer_Private
 

Detailed Description

creates a new customer

Constructor & Destructor Documentation

MTCreateCustomer::MTCreateCustomer ( const MOCustomer acustomer,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTCreateCustomer_Private::in_customer, and MTCreateCustomer_Private.

MTCreateCustomer::MTCreateCustomer ( )

default constructor: generates an invalid transaction

References MTCreateCustomer_Private.

MTCreateCustomer::MTCreateCustomer ( const MTCreateCustomer t)

copy constructor: the two copies share their state

References MTCreateCustomer_Private::attach().

MTCreateCustomer::~MTCreateCustomer ( )
virtual

deletes this instance

References MTCreateCustomer_Private::detach().

Member Function Documentation

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

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

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

MTCreateCustomer MTCreateCustomer::query ( const MOCustomer acustomer,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::queryCreateCustomer().

Friends And Related Function Documentation

friend class MTCreateCustomer_Private
friend

Referenced by MTCreateCustomer().


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