|
MagicSmoke
$VERSION$
|
This transaction is used to restore backup data into the database. More...
#include <srcMTRestoreBackup.h>
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... | |
| MTRestoreBackup & | operator= (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 |
This transaction is used to restore backup data into the database.
|
explicitprotected |
generates an instance from its properties
| abackup | Contains the structured backup data. |
| aupdate | If true: attempt to update existing data, otherwise forces insert. |
| iface | ID 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().
|
virtual |
deletes this instance
References MTRestoreBackup_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
| abackup | Contains the structured backup data. |
| aupdate | If true: attempt to update existing data, otherwise forces insert. |
| iface | ID of the interface that the transaction will be sent on |
|
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().
|
static |
emits the query over the network and returns the finished transaction object
| abackup | Contains the structured backup data. |
| aupdate | If true: attempt to update existing data, otherwise forces insert. |
| iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryRestoreBackup().
|
friend |
Referenced by MTRestoreBackup().