MagicSmoke  $VERSION$
MTGetUser Class Reference

Returns one specific user by name. More...

#include <srcMTGetUser.h>

Inheritance diagram for MTGetUser:
MTransaction

Public Member Functions

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

Static Public Member Functions

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

 MTGetUser (const QString &auname, 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 MTGetUser_Private
 

Detailed Description

Returns one specific user by name.

Constructor & Destructor Documentation

MTGetUser::MTGetUser ( const QString &  auname,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTGetUser_Private::in_uname, and MTGetUser_Private.

MTGetUser::MTGetUser ( )

default constructor: generates an invalid transaction

References MTGetUser_Private.

MTGetUser::MTGetUser ( const MTGetUser t)

copy constructor: the two copies share their state

References MTGetUser_Private::attach().

MTGetUser::~MTGetUser ( )
virtual

deletes this instance

References MTGetUser_Private::detach().

Member Function Documentation

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

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

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

MTGetUser MTGetUser::query ( const QString &  auname,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::queryGetUser().

Friends And Related Function Documentation

friend class MTGetUser_Private
friend

Referenced by MTGetUser().


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