MagicSmoke  $VERSION$
MTCreateRoom Class Reference

creates a new room More...

#include <srcMTCreateRoom.h>

Inheritance diagram for MTCreateRoom:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTCreateRoom asyncQuery (const QString &aroomid, const qint64 &acapacity, const QString &adescription, 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 MTCreateRoom query (const QString &aroomid, const qint64 &acapacity, const QString &adescription, 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

 MTCreateRoom (const QString &aroomid, const qint64 &acapacity, const QString &adescription, 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 MTCreateRoom_Private
 

Detailed Description

creates a new room

Constructor & Destructor Documentation

MTCreateRoom::MTCreateRoom ( const QString &  aroomid,
const qint64 &  acapacity,
const QString &  adescription,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
aroomid
acapacity
adescription
ifaceID of the interface that the transaction will be sent on

References MTCreateRoom_Private::in_capacity, MTCreateRoom_Private::in_description, MTCreateRoom_Private::in_roomid, and MTCreateRoom_Private.

MTCreateRoom::MTCreateRoom ( )

default constructor: generates an invalid transaction

References MTCreateRoom_Private.

MTCreateRoom::MTCreateRoom ( const MTCreateRoom t)

copy constructor: the two copies share their state

References MTCreateRoom_Private::attach().

MTCreateRoom::~MTCreateRoom ( )
virtual

deletes this instance

References MTCreateRoom_Private::detach().

Member Function Documentation

MTCreateRoom MTCreateRoom::asyncQuery ( const QString &  aroomid,
const qint64 &  acapacity,
const QString &  adescription,
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
aroomid
acapacity
adescription
ifaceID of the interface that the transaction will be sent on
void MTCreateRoom::endQuery ( )
protectedvirtual
Nullable< MORoom > MTCreateRoom::getroom ( ) const
MTCreateRoom & MTCreateRoom::operator= ( const MTCreateRoom t)

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

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

MTCreateRoom MTCreateRoom::query ( const QString &  aroomid,
const qint64 &  acapacity,
const QString &  adescription,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
aroomid
acapacity
adescription
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryCreateRoom().

Friends And Related Function Documentation

friend class MTCreateRoom_Private
friend

Referenced by MTCreateRoom().


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