MagicSmoke  $VERSION$
MTGetUserRoles Class Reference

Returns all roles assigned to a specific user. More...

#include <srcMTGetUserRoles.h>

Inheritance diagram for MTGetUserRoles:
MTransaction

Public Member Functions

 MTGetUserRoles ()
 default constructor: generates an invalid transaction More...
 
 MTGetUserRoles (const MTGetUserRoles &)
 copy constructor: the two copies share their state More...
 
virtual ~MTGetUserRoles ()
 deletes this instance More...
 
Q_SLOT QList< QString > getroles () const
 
MTGetUserRolesoperator= (const MTGetUserRoles &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

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

 MTGetUserRoles (const QString &ausername, 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 MTGetUserRoles_Private
 

Detailed Description

Returns all roles assigned to a specific user.

Constructor & Destructor Documentation

MTGetUserRoles::MTGetUserRoles ( const QString &  ausername,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTGetUserRoles_Private::in_username, and MTGetUserRoles_Private.

MTGetUserRoles::MTGetUserRoles ( )

default constructor: generates an invalid transaction

References MTGetUserRoles_Private.

MTGetUserRoles::MTGetUserRoles ( const MTGetUserRoles t)

copy constructor: the two copies share their state

References MTGetUserRoles_Private::attach().

MTGetUserRoles::~MTGetUserRoles ( )
virtual

deletes this instance

References MTGetUserRoles_Private::detach().

Member Function Documentation

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

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

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

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

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

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

Referenced by MInterface::queryGetUserRoles().

Friends And Related Function Documentation

friend class MTGetUserRoles_Private
friend

Referenced by MTGetUserRoles().


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