MagicSmoke  $VERSION$
MTSetRoleRights Class Reference

Changes the rights assigned to a role. More...

#include <srcMTSetRoleRights.h>

Inheritance diagram for MTSetRoleRights:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTSetRoleRights asyncQuery (const QString &arole, const QList< QString > &arights, 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 MTSetRoleRights query (const QString &arole, const QList< QString > &arights, 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

 MTSetRoleRights (const QString &arole, const QList< QString > &arights, 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 MTSetRoleRights_Private
 

Detailed Description

Changes the rights assigned to a role.

Constructor & Destructor Documentation

MTSetRoleRights::MTSetRoleRights ( const QString &  arole,
const QList< QString > &  arights,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
arole
arights
ifaceID of the interface that the transaction will be sent on

References MTSetRoleRights_Private::in_rights, MTSetRoleRights_Private::in_role, and MTSetRoleRights_Private.

MTSetRoleRights::MTSetRoleRights ( )

default constructor: generates an invalid transaction

References MTSetRoleRights_Private.

MTSetRoleRights::MTSetRoleRights ( const MTSetRoleRights t)

copy constructor: the two copies share their state

References MTSetRoleRights_Private::attach().

MTSetRoleRights::~MTSetRoleRights ( )
virtual

deletes this instance

References MTSetRoleRights_Private::detach().

Member Function Documentation

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

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

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

MTSetRoleRights MTSetRoleRights::query ( const QString &  arole,
const QList< QString > &  arights,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
arole
arights
ifaceID of the interface that the transaction will be sent on

Referenced by MRoleTab::editRights(), and MInterface::querySetRoleRights().

Friends And Related Function Documentation

friend class MTSetRoleRights_Private
friend

Referenced by MTSetRoleRights().


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