MagicSmoke
$VERSION$
|
Returns a specific role by name. More...
#include <srcMTGetRole.h>
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< MORole > | getrole () const |
MTGetRole & | operator= (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 |
Returns a specific role by name.
|
explicitprotected |
generates an instance from its properties
arole | |
iface | ID 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().
|
virtual |
deletes this instance
References MTGetRole_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
arole | |
iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
Nullable< MORole > MTGetRole::getrole | ( | ) | const |
References MTGetRole_Private::out_role.
Referenced by MRoleTab::editFlags(), and MRoleTab::editRights().
copy assignment: the copy shares the state of the original object
References MTGetRole_Private::attach(), and MTGetRole_Private::detach().
|
static |
emits the query over the network and returns the finished transaction object
arole | |
iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryGetRole().
|
friend |
Referenced by MTGetRole().