|
MagicSmoke
$VERSION$
|
Attempts to create a new user. This may fail if the user already exists. More...
#include <srcMTCreateUser.h>
Public Member Functions | |
| MTCreateUser () | |
| default constructor: generates an invalid transaction More... | |
| MTCreateUser (const MTCreateUser &) | |
| copy constructor: the two copies share their state More... | |
| virtual | ~MTCreateUser () |
| deletes this instance More... | |
| Q_SLOT Nullable< MOUser > | getuser () const |
| MTCreateUser & | operator= (const MTCreateUser &) |
| copy assignment: the copy shares the state of the original object More... | |
Static Public Member Functions | |
| static MTCreateUser | asyncQuery (const QString &ausername, const QString &apassword, const QString &adescription, 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 MTCreateUser | query (const QString &ausername, const QString &apassword, const QString &adescription, 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 | |
| MTCreateUser (const QString &ausername, const QString &apassword, const QString &adescription, QString iface) | |
| generates an instance from its properties More... | |
| virtual bool | canLogRequest () const |
| 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 | MTCreateUser_Private |
Attempts to create a new user. This may fail if the user already exists.
|
explicitprotected |
generates an instance from its properties
| ausername | |
| apassword | |
| adescription | |
| iface | ID of the interface that the transaction will be sent on |
References MTCreateUser_Private::in_description, MTCreateUser_Private::in_password, MTCreateUser_Private::in_username, and MTCreateUser_Private.
| MTCreateUser::MTCreateUser | ( | ) |
default constructor: generates an invalid transaction
References MTCreateUser_Private.
| MTCreateUser::MTCreateUser | ( | const MTCreateUser & | t | ) |
copy constructor: the two copies share their state
References MTCreateUser_Private::attach().
|
virtual |
deletes this instance
References MTCreateUser_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
| ausername | |
| apassword | |
| adescription | |
| iface | ID of the interface that the transaction will be sent on |
|
inlineprotectedvirtual |
|
protectedvirtual |
| Nullable< MOUser > MTCreateUser::getuser | ( | ) | const |
References MTCreateUser_Private::out_user.
| MTCreateUser & MTCreateUser::operator= | ( | const MTCreateUser & | t | ) |
copy assignment: the copy shares the state of the original object
References MTCreateUser_Private::attach(), and MTCreateUser_Private::detach().
|
static |
emits the query over the network and returns the finished transaction object
| ausername | |
| apassword | |
| adescription | |
| iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryCreateUser().
|
friend |
Referenced by MTCreateUser().