MagicSmoke  $VERSION$
MTSetUserFlags Class Reference

Changes the flags of a user. Flags determine what data (events, templates, etc.) a user can use. More...

#include <srcMTSetUserFlags.h>

Inheritance diagram for MTSetUserFlags:
MTransaction

Public Member Functions

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

Static Public Member Functions

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

 MTSetUserFlags (const QString &ausername, const QList< QString > &aflags, 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 MTSetUserFlags_Private
 

Detailed Description

Changes the flags of a user. Flags determine what data (events, templates, etc.) a user can use.

Constructor & Destructor Documentation

MTSetUserFlags::MTSetUserFlags ( const QString &  ausername,
const QList< QString > &  aflags,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTSetUserFlags_Private::in_flags, MTSetUserFlags_Private::in_username, and MTSetUserFlags_Private.

MTSetUserFlags::MTSetUserFlags ( )

default constructor: generates an invalid transaction

References MTSetUserFlags_Private.

MTSetUserFlags::MTSetUserFlags ( const MTSetUserFlags t)

copy constructor: the two copies share their state

References MTSetUserFlags_Private::attach().

MTSetUserFlags::~MTSetUserFlags ( )
virtual

deletes this instance

References MTSetUserFlags_Private::detach().

Member Function Documentation

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

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

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

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

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

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

Referenced by MInterface::querySetUserFlags().

Friends And Related Function Documentation

friend class MTSetUserFlags_Private
friend

Referenced by MTSetUserFlags().


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