MagicSmoke  $VERSION$
MTGetRole Class Reference

Returns a specific role by name. More...

#include <srcMTGetRole.h>

Inheritance diagram for MTGetRole:
MTransaction

Public Member Functions

 MTGetRole ()
 default constructor: generates an invalid transaction More...
 
 MTGetRole (const MTGetRole &)
 copy constructor: the two copies share their state More...
 
virtual ~MTGetRole ()
 deletes this instance More...
 
Q_SLOT Nullable< MORolegetrole () const
 
MTGetRoleoperator= (const MTGetRole &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

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

 MTGetRole (const QString &arole, 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 MTGetRole_Private
 

Detailed Description

Returns a specific role by name.

Constructor & Destructor Documentation

MTGetRole::MTGetRole ( const QString &  arole,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTGetRole_Private::in_role, and MTGetRole_Private.

MTGetRole::MTGetRole ( )

default constructor: generates an invalid transaction

References MTGetRole_Private.

MTGetRole::MTGetRole ( const MTGetRole t)

copy constructor: the two copies share their state

References MTGetRole_Private::attach().

MTGetRole::~MTGetRole ( )
virtual

deletes this instance

References MTGetRole_Private::detach().

Member Function Documentation

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

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

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

MTGetRole MTGetRole::query ( const QString &  arole,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::queryGetRole().

Friends And Related Function Documentation

friend class MTGetRole_Private
friend

Referenced by MTGetRole().


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