MagicSmoke  $VERSION$
MTChangePassword Class Reference

Admins: change/reset the password of a specific user. To be used when a user forgot his/her password. More...

#include <srcMTChangePassword.h>

Inheritance diagram for MTChangePassword:
MTransaction

Public Member Functions

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

Static Public Member Functions

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

 MTChangePassword (const QString &ausername, const QString &apassword, 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 MTChangePassword_Private
 

Detailed Description

Admins: change/reset the password of a specific user. To be used when a user forgot his/her password.

Constructor & Destructor Documentation

MTChangePassword::MTChangePassword ( const QString &  ausername,
const QString &  apassword,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTChangePassword_Private::in_password, MTChangePassword_Private::in_username, and MTChangePassword_Private.

MTChangePassword::MTChangePassword ( )

default constructor: generates an invalid transaction

References MTChangePassword_Private.

MTChangePassword::MTChangePassword ( const MTChangePassword t)

copy constructor: the two copies share their state

References MTChangePassword_Private::attach().

MTChangePassword::~MTChangePassword ( )
virtual

deletes this instance

References MTChangePassword_Private::detach().

Member Function Documentation

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

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

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

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

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

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

Referenced by MInterface::queryChangePassword().

Friends And Related Function Documentation

friend class MTChangePassword_Private
friend

Referenced by MTChangePassword().


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