MagicSmoke
$VERSION$
|
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>
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... | |
MTDeleteUser & | operator= (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 |
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.
|
explicitprotected |
generates an instance from its properties
ausername | |
amergewithuser | |
iface | ID 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().
|
virtual |
deletes this instance
References MTDeleteUser_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
ausername | |
amergewithuser | |
iface | ID of the interface that the transaction will be sent on |
|
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().
|
static |
emits the query over the network and returns the finished transaction object
ausername | |
amergewithuser | |
iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryDeleteUser().
|
friend |
Referenced by MTDeleteUser().