MagicSmoke  $VERSION$
MTDeleteUser Class Reference

Attempt to delete a user. Usually you will need to merge it with another user to move all orders created by that user over to the merge target. If you do not merge and there are orders by that user, the delete operation will fail. More...

#include <srcMTDeleteUser.h>

Inheritance diagram for MTDeleteUser:
MTransaction

Public Member Functions

 MTDeleteUser ()
 default constructor: generates an invalid transaction More...
 
 MTDeleteUser (const MTDeleteUser &)
 copy constructor: the two copies share their state More...
 
virtual ~MTDeleteUser ()
 deletes this instance More...
 
MTDeleteUseroperator= (const MTDeleteUser &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTDeleteUser asyncQuery (const QString &ausername, const QString &amergewithuser, 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 MTDeleteUser query (const QString &ausername, const QString &amergewithuser, 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

 MTDeleteUser (const QString &ausername, const QString &amergewithuser, 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 MTDeleteUser_Private
 

Detailed Description

Attempt to delete a user. Usually you will need to merge it with another user to move all orders created by that user over to the merge target. If you do not merge and there are orders by that user, the delete operation will fail.

Constructor & Destructor Documentation

MTDeleteUser::MTDeleteUser ( const QString &  ausername,
const QString &  amergewithuser,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
ausername
amergewithuser
ifaceID of the interface that the transaction will be sent on

References MTDeleteUser_Private::in_mergewithuser, MTDeleteUser_Private::in_username, and MTDeleteUser_Private.

MTDeleteUser::MTDeleteUser ( )

default constructor: generates an invalid transaction

References MTDeleteUser_Private.

MTDeleteUser::MTDeleteUser ( const MTDeleteUser t)

copy constructor: the two copies share their state

References MTDeleteUser_Private::attach().

MTDeleteUser::~MTDeleteUser ( )
virtual

deletes this instance

References MTDeleteUser_Private::detach().

Member Function Documentation

MTDeleteUser MTDeleteUser::asyncQuery ( const QString &  ausername,
const QString &  amergewithuser,
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
ausername
amergewithuser
ifaceID of the interface that the transaction will be sent on
void MTDeleteUser::endQuery ( )
protectedvirtual
MTDeleteUser & MTDeleteUser::operator= ( const MTDeleteUser t)

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

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

MTDeleteUser MTDeleteUser::query ( const QString &  ausername,
const QString &  amergewithuser,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
ausername
amergewithuser
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryDeleteUser().

Friends And Related Function Documentation

friend class MTDeleteUser_Private
friend

Referenced by MTDeleteUser().


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