MagicSmoke  $VERSION$
MTRestoreBackup Class Reference

This transaction is used to restore backup data into the database. More...

#include <srcMTRestoreBackup.h>

Inheritance diagram for MTRestoreBackup:
MTransaction

Public Member Functions

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

Static Public Member Functions

static MTRestoreBackup asyncQuery (const QString &abackup, const bool &aupdate, 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 MTRestoreBackup query (const QString &abackup, const bool &aupdate, 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

 MTRestoreBackup (const QString &abackup, const bool &aupdate, 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 MTRestoreBackup_Private
 

Detailed Description

This transaction is used to restore backup data into the database.

Constructor & Destructor Documentation

MTRestoreBackup::MTRestoreBackup ( const QString &  abackup,
const bool &  aupdate,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
abackupContains the structured backup data.
aupdateIf true: attempt to update existing data, otherwise forces insert.
ifaceID of the interface that the transaction will be sent on

References MTRestoreBackup_Private::in_backup, MTRestoreBackup_Private::in_update, and MTRestoreBackup_Private.

MTRestoreBackup::MTRestoreBackup ( )

default constructor: generates an invalid transaction

References MTRestoreBackup_Private.

MTRestoreBackup::MTRestoreBackup ( const MTRestoreBackup t)

copy constructor: the two copies share their state

References MTRestoreBackup_Private::attach().

MTRestoreBackup::~MTRestoreBackup ( )
virtual

deletes this instance

References MTRestoreBackup_Private::detach().

Member Function Documentation

MTRestoreBackup MTRestoreBackup::asyncQuery ( const QString &  abackup,
const bool &  aupdate,
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
abackupContains the structured backup data.
aupdateIf true: attempt to update existing data, otherwise forces insert.
ifaceID of the interface that the transaction will be sent on
void MTRestoreBackup::endQuery ( )
protectedvirtual
MTRestoreBackup & MTRestoreBackup::operator= ( const MTRestoreBackup t)

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

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

MTRestoreBackup MTRestoreBackup::query ( const QString &  abackup,
const bool &  aupdate,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
abackupContains the structured backup data.
aupdateIf true: attempt to update existing data, otherwise forces insert.
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryRestoreBackup().

Friends And Related Function Documentation

friend class MTRestoreBackup_Private
friend

Referenced by MTRestoreBackup().


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