MagicSmoke  $VERSION$
MTBackup Class Reference

This transaction allows to make a complete database backup. More...

#include <srcMTBackup.h>

Inheritance diagram for MTBackup:
MTransaction

Public Member Functions

 MTBackup ()
 default constructor: generates an invalid transaction More...
 
 MTBackup (const MTBackup &)
 copy constructor: the two copies share their state More...
 
virtual ~MTBackup ()
 deletes this instance More...
 
Q_SLOT Nullable< QString > getbackup () const
 Contains the structured backup data. More...
 
MTBackupoperator= (const MTBackup &)
 copy assignment: the copy shares the state of the original object More...
 

Static Public Member Functions

static MTBackup asyncQuery (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 MTBackup query (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

 MTBackup (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 MTBackup_Private
 

Detailed Description

This transaction allows to make a complete database backup.

The backup file is replayed into the database via the admin.php interface. This is the old-style backup interface, it is obsolete as of 2016.

Constructor & Destructor Documentation

MTBackup::MTBackup ( QString  iface)
explicitprotected

generates an instance from its properties

Parameters
ifaceID of the interface that the transaction will be sent on

References MTBackup_Private.

MTBackup::MTBackup ( )

default constructor: generates an invalid transaction

References MTBackup_Private.

MTBackup::MTBackup ( const MTBackup t)

copy constructor: the two copies share their state

References MTBackup_Private::attach().

MTBackup::~MTBackup ( )
virtual

deletes this instance

References MTBackup_Private::detach().

Member Function Documentation

MTBackup MTBackup::asyncQuery ( 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
ifaceID of the interface that the transaction will be sent on
void MTBackup::endQuery ( )
protectedvirtual
Nullable< QString > MTBackup::getbackup ( ) const

Contains the structured backup data.

References MTBackup_Private::out_backup.

Referenced by MOverview::doBackup().

MTBackup & MTBackup::operator= ( const MTBackup t)

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

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

MTBackup MTBackup::query ( QString  iface = "MagicSmoke")
static

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

Parameters
ifaceID of the interface that the transaction will be sent on

Referenced by MOverview::doBackup(), and MInterface::queryBackup().

Friends And Related Function Documentation

friend class MTBackup_Private
friend

Referenced by MTBackup().


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