MagicSmoke  $VERSION$
MTSetUserHosts Class Reference

Changes the hosts a user may log in from. More...

#include <srcMTSetUserHosts.h>

Inheritance diagram for MTSetUserHosts:
MTransaction

Public Member Functions

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

Static Public Member Functions

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

 MTSetUserHosts (const QString &ausername, const QList< QString > &ahosts, 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 MTSetUserHosts_Private
 

Detailed Description

Changes the hosts a user may log in from.

Constructor & Destructor Documentation

MTSetUserHosts::MTSetUserHosts ( const QString &  ausername,
const QList< QString > &  ahosts,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTSetUserHosts_Private::in_hosts, MTSetUserHosts_Private::in_username, and MTSetUserHosts_Private.

MTSetUserHosts::MTSetUserHosts ( )

default constructor: generates an invalid transaction

References MTSetUserHosts_Private.

MTSetUserHosts::MTSetUserHosts ( const MTSetUserHosts t)

copy constructor: the two copies share their state

References MTSetUserHosts_Private::attach().

MTSetUserHosts::~MTSetUserHosts ( )
virtual

deletes this instance

References MTSetUserHosts_Private::detach().

Member Function Documentation

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

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

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

MTSetUserHosts MTSetUserHosts::query ( const QString &  ausername,
const QList< QString > &  ahosts,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::querySetUserHosts().

Friends And Related Function Documentation

friend class MTSetUserHosts_Private
friend

Referenced by MTSetUserHosts().


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