MagicSmoke  $VERSION$
MTSetTemplate Class Reference

Overwrites or creates a specific template. More...

#include <srcMTSetTemplate.h>

Inheritance diagram for MTSetTemplate:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTSetTemplate asyncQuery (const QString &afilename, const QByteArray &atemplatedata, 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 MTSetTemplate query (const QString &afilename, const QByteArray &atemplatedata, 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

 MTSetTemplate (const QString &afilename, const QByteArray &atemplatedata, 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 MTSetTemplate_Private
 

Detailed Description

Overwrites or creates a specific template.

Constructor & Destructor Documentation

MTSetTemplate::MTSetTemplate ( const QString &  afilename,
const QByteArray &  atemplatedata,
const QString &  adescription,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
afilename
atemplatedata
adescription
ifaceID of the interface that the transaction will be sent on

References MTSetTemplate_Private::in_description, MTSetTemplate_Private::in_filename, MTSetTemplate_Private::in_templatedata, and MTSetTemplate_Private.

MTSetTemplate::MTSetTemplate ( )

default constructor: generates an invalid transaction

References MTSetTemplate_Private.

MTSetTemplate::MTSetTemplate ( const MTSetTemplate t)

copy constructor: the two copies share their state

References MTSetTemplate_Private::attach().

MTSetTemplate::~MTSetTemplate ( )
virtual

deletes this instance

References MTSetTemplate_Private::detach().

Member Function Documentation

MTSetTemplate MTSetTemplate::asyncQuery ( const QString &  afilename,
const QByteArray &  atemplatedata,
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
afilename
atemplatedata
adescription
ifaceID of the interface that the transaction will be sent on
void MTSetTemplate::endQuery ( )
protectedvirtual
Nullable< MOTemplate > MTSetTemplate::gettemplatefile ( ) const
MTSetTemplate & MTSetTemplate::operator= ( const MTSetTemplate t)

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

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

MTSetTemplate MTSetTemplate::query ( const QString &  afilename,
const QByteArray &  atemplatedata,
const QString &  adescription,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
afilename
atemplatedata
adescription
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::querySetTemplate().

Friends And Related Function Documentation

friend class MTSetTemplate_Private
friend

Referenced by MTSetTemplate().


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