MagicSmoke  $VERSION$
MTGetTemplate Class Reference

Returns a specific template. More...

#include <srcMTGetTemplate.h>

Inheritance diagram for MTGetTemplate:
MTransaction

Public Member Functions

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

Static Public Member Functions

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

 MTGetTemplate (const QString &afilename, 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 MTGetTemplate_Private
 

Detailed Description

Returns a specific template.

Constructor & Destructor Documentation

MTGetTemplate::MTGetTemplate ( const QString &  afilename,
QString  iface 
)
explicitprotected

generates an instance from its properties

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

References MTGetTemplate_Private::in_filename, and MTGetTemplate_Private.

MTGetTemplate::MTGetTemplate ( )

default constructor: generates an invalid transaction

References MTGetTemplate_Private.

MTGetTemplate::MTGetTemplate ( const MTGetTemplate t)

copy constructor: the two copies share their state

References MTGetTemplate_Private::attach().

MTGetTemplate::~MTGetTemplate ( )
virtual

deletes this instance

References MTGetTemplate_Private::detach().

Member Function Documentation

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

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

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

MTGetTemplate MTGetTemplate::query ( const QString &  afilename,
QString  iface = "MagicSmoke" 
)
static

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

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

Referenced by MInterface::queryGetTemplate().

Friends And Related Function Documentation

friend class MTGetTemplate_Private
friend

Referenced by MTGetTemplate().


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