MagicSmoke  $VERSION$
MTBackupTable Class Reference

This transaction is used to get data from the database during a backup. More...

#include <srcMTBackupTable.h>

Inheritance diagram for MTBackupTable:
MTransaction

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...
 
MTBackupTableoperator= (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
 

Detailed Description

This transaction is used to get data from the database during a backup.

Constructor & Destructor Documentation

MTBackupTable::MTBackupTable ( const QString &  atable,
const qint64 &  aminkey,
const qint64 &  amaxkey,
const QList< QString > &  akeylist,
QString  iface 
)
explicitprotected

generates an instance from its properties

Parameters
atableThe name of the table to be backed up.
aminkeyFirst integer element to back up.
amaxkeyLast integer element to back up.
akeylistList of string keys to back up.
ifaceID 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().

MTBackupTable::~MTBackupTable ( )
virtual

deletes this instance

References MTBackupTable_Private::detach().

Member Function Documentation

MTBackupTable MTBackupTable::asyncQuery ( const QString &  atable,
const qint64 &  aminkey,
const qint64 &  amaxkey,
const QList< QString > &  akeylist,
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
atableThe name of the table to be backed up.
aminkeyFirst integer element to back up.
amaxkeyLast integer element to back up.
akeylistList of string keys to back up.
ifaceID of the interface that the transaction will be sent on
void MTBackupTable::endQuery ( )
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().

MTBackupTable MTBackupTable::query ( const QString &  atable,
const qint64 &  aminkey,
const qint64 &  amaxkey,
const QList< QString > &  akeylist,
QString  iface = "MagicSmoke" 
)
static

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

Parameters
atableThe name of the table to be backed up.
aminkeyFirst integer element to back up.
amaxkeyLast integer element to back up.
akeylistList of string keys to back up.
ifaceID of the interface that the transaction will be sent on

Referenced by MInterface::queryBackupTable().

Friends And Related Function Documentation

friend class MTBackupTable_Private
friend

Referenced by MTBackupTable().


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