MagicSmoke  $VERSION$
MTCreateUser Class Reference

Attempts to create a new user. This may fail if the user already exists. More...

#include <srcMTCreateUser.h>

Inheritance diagram for MTCreateUser:
MTransaction

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< MOUsergetuser () const
 
MTCreateUseroperator= (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
 

Detailed Description

Attempts to create a new user. This may fail if the user already exists.

Constructor & Destructor Documentation

MTCreateUser::MTCreateUser ( const QString &  ausername,
const QString &  apassword,
const QString &  adescription,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
ausername
apassword
adescription
ifaceID 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().

MTCreateUser::~MTCreateUser ( )
virtual

deletes this instance

References MTCreateUser_Private::detach().

Member Function Documentation

MTCreateUser MTCreateUser::asyncQuery ( const QString &  ausername,
const QString &  apassword,
const QString &  adescription,
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
apassword
adescription
ifaceID of the interface that the transaction will be sent on
virtual bool MTCreateUser::canLogRequest ( ) const
inlineprotectedvirtual
void MTCreateUser::endQuery ( )
protectedvirtual
Nullable< MOUser > MTCreateUser::getuser ( ) const
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().

MTCreateUser MTCreateUser::query ( const QString &  ausername,
const QString &  apassword,
const QString &  adescription,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::queryCreateUser().

Friends And Related Function Documentation

friend class MTCreateUser_Private
friend

Referenced by MTCreateUser().


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