MagicSmoke  $VERSION$
MTSetUserRoles Class Reference

Changes the roles assigned to a specific user. More...

#include <srcMTSetUserRoles.h>

Inheritance diagram for MTSetUserRoles:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTSetUserRoles asyncQuery (const QString &ausername, const QList< QString > &aroles, 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 MTSetUserRoles query (const QString &ausername, const QList< QString > &aroles, 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

 MTSetUserRoles (const QString &ausername, const QList< QString > &aroles, 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 MTSetUserRoles_Private
 

Detailed Description

Changes the roles assigned to a specific user.

Constructor & Destructor Documentation

MTSetUserRoles::MTSetUserRoles ( const QString &  ausername,
const QList< QString > &  aroles,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTSetUserRoles_Private::in_roles, MTSetUserRoles_Private::in_username, and MTSetUserRoles_Private.

MTSetUserRoles::MTSetUserRoles ( )

default constructor: generates an invalid transaction

References MTSetUserRoles_Private.

MTSetUserRoles::MTSetUserRoles ( const MTSetUserRoles t)

copy constructor: the two copies share their state

References MTSetUserRoles_Private::attach().

MTSetUserRoles::~MTSetUserRoles ( )
virtual

deletes this instance

References MTSetUserRoles_Private::detach().

Member Function Documentation

MTSetUserRoles MTSetUserRoles::asyncQuery ( const QString &  ausername,
const QList< QString > &  aroles,
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
aroles
ifaceID of the interface that the transaction will be sent on
void MTSetUserRoles::endQuery ( )
protectedvirtual
MTSetUserRoles & MTSetUserRoles::operator= ( const MTSetUserRoles t)

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

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

MTSetUserRoles MTSetUserRoles::query ( const QString &  ausername,
const QList< QString > &  aroles,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::querySetUserRoles().

Friends And Related Function Documentation

friend class MTSetUserRoles_Private
friend

Referenced by MTSetUserRoles().


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