MagicSmoke
$VERSION$
|
Overwrites or creates a specific template. More...
#include <srcMTSetTemplate.h>
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< MOTemplate > | gettemplatefile () const |
MTSetTemplate & | operator= (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 |
Overwrites or creates a specific template.
|
explicitprotected |
generates an instance from its properties
afilename | |
atemplatedata | |
adescription | |
iface | ID 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().
|
virtual |
deletes this instance
References MTSetTemplate_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
afilename | |
atemplatedata | |
adescription | |
iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
Nullable< MOTemplate > MTSetTemplate::gettemplatefile | ( | ) | const |
References MTSetTemplate_Private::out_templatefile.
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().
|
static |
emits the query over the network and returns the finished transaction object
afilename | |
atemplatedata | |
adescription | |
iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::querySetTemplate().
|
friend |
Referenced by MTSetTemplate().