MagicSmoke  $VERSION$
MTDeleteTemplate Class Reference

Deletes a template from the server. More...

#include <srcMTDeleteTemplate.h>

Inheritance diagram for MTDeleteTemplate:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTDeleteTemplate 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 MTDeleteTemplate 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

 MTDeleteTemplate (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 MTDeleteTemplate_Private
 

Detailed Description

Deletes a template from the server.

Constructor & Destructor Documentation

MTDeleteTemplate::MTDeleteTemplate ( 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 MTDeleteTemplate_Private::in_filename, and MTDeleteTemplate_Private.

MTDeleteTemplate::MTDeleteTemplate ( )

default constructor: generates an invalid transaction

References MTDeleteTemplate_Private.

MTDeleteTemplate::MTDeleteTemplate ( const MTDeleteTemplate t)

copy constructor: the two copies share their state

References MTDeleteTemplate_Private::attach().

MTDeleteTemplate::~MTDeleteTemplate ( )
virtual

deletes this instance

References MTDeleteTemplate_Private::detach().

Member Function Documentation

MTDeleteTemplate MTDeleteTemplate::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 MTDeleteTemplate::endQuery ( )
protectedvirtual
MTDeleteTemplate & MTDeleteTemplate::operator= ( const MTDeleteTemplate t)

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

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

MTDeleteTemplate MTDeleteTemplate::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::queryDeleteTemplate().

Friends And Related Function Documentation

friend class MTDeleteTemplate_Private
friend

Referenced by MTDeleteTemplate().


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