MagicSmoke  $VERSION$
MTDeleteCustomer Class Reference

deletes a customer - usually by merging info into another customer More...

#include <srcMTDeleteCustomer.h>

Inheritance diagram for MTDeleteCustomer:
MTransaction

Public Member Functions

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

Static Public Member Functions

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

 MTDeleteCustomer (const qint64 &acustomerid, const qint64 &amergewithid, 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 MTDeleteCustomer_Private
 

Detailed Description

deletes a customer - usually by merging info into another customer

Constructor & Destructor Documentation

MTDeleteCustomer::MTDeleteCustomer ( const qint64 &  acustomerid,
const qint64 &  amergewithid,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTDeleteCustomer_Private::in_customerid, MTDeleteCustomer_Private::in_mergewithid, and MTDeleteCustomer_Private.

MTDeleteCustomer::MTDeleteCustomer ( )

default constructor: generates an invalid transaction

References MTDeleteCustomer_Private.

MTDeleteCustomer::MTDeleteCustomer ( const MTDeleteCustomer t)

copy constructor: the two copies share their state

References MTDeleteCustomer_Private::attach().

MTDeleteCustomer::~MTDeleteCustomer ( )
virtual

deletes this instance

References MTDeleteCustomer_Private::detach().

Member Function Documentation

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

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

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

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

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

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

Referenced by MInterface::queryDeleteCustomer().

Friends And Related Function Documentation

friend class MTDeleteCustomer_Private
friend

Referenced by MTDeleteCustomer().


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