MagicSmoke  $VERSION$
MTChangeMyPassword Class Reference

Changes the password of the user of the current session. This may fail if the old password does not match or the new password is too weak. More...

#include <srcMTChangeMyPassword.h>

Inheritance diagram for MTChangeMyPassword:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTChangeMyPassword asyncQuery (const QString &aoldpassword, const QString &anewpassword, 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 MTChangeMyPassword query (const QString &aoldpassword, const QString &anewpassword, 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

 MTChangeMyPassword (const QString &aoldpassword, const QString &anewpassword, 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 MTChangeMyPassword_Private
 

Detailed Description

Changes the password of the user of the current session. This may fail if the old password does not match or the new password is too weak.

Constructor & Destructor Documentation

MTChangeMyPassword::MTChangeMyPassword ( const QString &  aoldpassword,
const QString &  anewpassword,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
aoldpasswordthis must match the old password of the user to authenticate the change
anewpasswordthis is the new password
ifaceID of the interface that the transaction will be sent on

References MTChangeMyPassword_Private::in_newpassword, MTChangeMyPassword_Private::in_oldpassword, and MTChangeMyPassword_Private.

MTChangeMyPassword::MTChangeMyPassword ( )

default constructor: generates an invalid transaction

References MTChangeMyPassword_Private.

MTChangeMyPassword::MTChangeMyPassword ( const MTChangeMyPassword t)

copy constructor: the two copies share their state

References MTChangeMyPassword_Private::attach().

MTChangeMyPassword::~MTChangeMyPassword ( )
virtual

deletes this instance

References MTChangeMyPassword_Private::detach().

Member Function Documentation

MTChangeMyPassword MTChangeMyPassword::asyncQuery ( const QString &  aoldpassword,
const QString &  anewpassword,
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
aoldpasswordthis must match the old password of the user to authenticate the change
anewpasswordthis is the new password
ifaceID of the interface that the transaction will be sent on
virtual bool MTChangeMyPassword::canLogRequest ( ) const
inlineprotectedvirtual
void MTChangeMyPassword::endQuery ( )
protectedvirtual
MTChangeMyPassword & MTChangeMyPassword::operator= ( const MTChangeMyPassword t)

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

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

MTChangeMyPassword MTChangeMyPassword::query ( const QString &  aoldpassword,
const QString &  anewpassword,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
aoldpasswordthis must match the old password of the user to authenticate the change
anewpasswordthis is the new password
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryChangeMyPassword().

Friends And Related Function Documentation

friend class MTChangeMyPassword_Private
friend

Referenced by MTChangeMyPassword().


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