|
MagicSmoke
$VERSION$
|
This transaction is used to get data from the database during a backup. More...
#include <srcMTBackupTable.h>
Public Member Functions | |
| MTBackupTable () | |
| default constructor: generates an invalid transaction More... | |
| MTBackupTable (const MTBackupTable &) | |
| copy constructor: the two copies share their state More... | |
| virtual | ~MTBackupTable () |
| deletes this instance More... | |
| Q_SLOT Nullable< QString > | getbackup () const |
| Contains the structured backup data. More... | |
| MTBackupTable & | operator= (const MTBackupTable &) |
| copy assignment: the copy shares the state of the original object More... | |
Static Public Member Functions | |
| static MTBackupTable | asyncQuery (const QString &atable, const qint64 &aminkey, const qint64 &amaxkey, const QList< QString > &akeylist, 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 MTBackupTable | query (const QString &atable, const qint64 &aminkey, const qint64 &amaxkey, const QList< QString > &akeylist, 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 | |
| MTBackupTable (const QString &atable, const qint64 &aminkey, const qint64 &amaxkey, const QList< QString > &akeylist, 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 | MTBackupTable_Private |
This transaction is used to get data from the database during a backup.
|
explicitprotected |
generates an instance from its properties
| atable | The name of the table to be backed up. |
| aminkey | First integer element to back up. |
| amaxkey | Last integer element to back up. |
| akeylist | List of string keys to back up. |
| iface | ID of the interface that the transaction will be sent on |
References MTBackupTable_Private::in_keylist, MTBackupTable_Private::in_maxkey, MTBackupTable_Private::in_minkey, MTBackupTable_Private::in_table, and MTBackupTable_Private.
| MTBackupTable::MTBackupTable | ( | ) |
default constructor: generates an invalid transaction
References MTBackupTable_Private.
| MTBackupTable::MTBackupTable | ( | const MTBackupTable & | t | ) |
copy constructor: the two copies share their state
References MTBackupTable_Private::attach().
|
virtual |
deletes this instance
References MTBackupTable_Private::detach().
|
static |
emits the query over the network and returns the transaction object, use isFinished() to check for the transaction's state
| atable | The name of the table to be backed up. |
| aminkey | First integer element to back up. |
| amaxkey | Last integer element to back up. |
| akeylist | List of string keys to back up. |
| iface | ID of the interface that the transaction will be sent on |
|
protectedvirtual |
| Nullable< QString > MTBackupTable::getbackup | ( | ) | const |
Contains the structured backup data.
References MTBackupTable_Private::out_backup.
| MTBackupTable & MTBackupTable::operator= | ( | const MTBackupTable & | t | ) |
copy assignment: the copy shares the state of the original object
References MTBackupTable_Private::attach(), and MTBackupTable_Private::detach().
|
static |
emits the query over the network and returns the finished transaction object
| atable | The name of the table to be backed up. |
| aminkey | First integer element to back up. |
| amaxkey | Last integer element to back up. |
| akeylist | List of string keys to back up. |
| iface | ID of the interface that the transaction will be sent on |
Referenced by MInterface::queryBackupTable().
|
friend |
Referenced by MTBackupTable().