LibEngsas
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
EDBBackup Class Reference

ESetupWizardObject to dump SQL databases into a file.If you need a dialog around it, use EDBBackupDialog instead. More...

#include <edbbackup.h>

+ Inheritance diagram for EDBBackup:
+ Collaboration diagram for EDBBackup:

Public Slots

bool finish ()
 
bool saveSettings (QString &error)
 
void abort ()
 
- Public Slots inherited from ESetupWizardWidget
virtual bool finish ()
 
virtual bool saveSettings (QString &error)=0
 
- Public Slots inherited from ESettingsWidget
virtual bool saveSettings (QString &error)
 Called to save all presented settings. More...
 
- Public Slots inherited from EWidget
virtual EngSaS::AvailableActions enableActions ()
 Will be called by EMainWindow::setCentralWidget() to enable and disable standard actions. More...
 
virtual QString fileFilters (EngSaS::FileFilter reason)
 
virtual bool load (QFile *file, QString &error)
 
virtual bool save (QFile *file, QString &error)
 
virtual bool fileNew (QString &error)
 
virtual bool print (QString &error)
 
virtual bool undo (QString &error)
 
virtual bool redo (QString &error)
 
virtual bool cut (QString &error)
 
virtual bool copy (QString &error)
 
virtual bool paste (QString &error)
 
virtual bool reload (QString &error)
 
virtual void reloadSettings ()
 Used to reload settings the settings. More...
 

Signals

void exportStarted ()
 
void exportFinished (bool result)
 
- Signals inherited from EWidget
void error (const QString &message)
 
void warning (const QString &message)
 
void information (const QString &message)
 
void reloadEnableActions ()
 Request reloading of enabled actions in EMainWindow. More...
 
void addMenu (QMenu *newMenu, const QString &parent, QString before=QString())
 
void addAction (QAction *newAction, const QString &parent, QString before=QString())
 
void addToolBar (QToolBar *newToolBar, Qt::ToolBarArea area=Qt::TopToolBarArea)
 
void addNewDockWidget (QDockWidget *widget, const Qt::DockWidgetArea &area)
 To add managed dock widgets, use addManagedDockWidget() instead. More...
 
void setCentralWidget (QWidget *centralWidget)
 
void showSettings ()
 
void showHelp (const QString &page)
 
void showStatusWidget (QWidget *widget)
 
void reloadSettingsRequest ()
 Indicates, that a reload of the settings is needed. More...
 
void doReloadSettings ()
 Emitted to bring the reload request back to the farest child. More...
 

Public Member Functions

 EDBBackup (ESetupWizardObject *newObject, QWidget *parent=NULL, Qt::WindowFlags flags=0)
 
 ~EDBBackup ()
 
bool working () const
 Returns true, if a database dump is running. More...
 
- Public Member Functions inherited from ESetupWizardWidget
 ESetupWizardWidget (ESetupWizardObject *newObject, QWidget *parent=0, Qt::WindowFlags flags=0)
 
virtual ~ESetupWizardWidget ()
 
ESetupWizardObjectwizardObject ()
 
- Public Member Functions inherited from ESettingsWidget
 ESettingsWidget (QWidget *parent=0, Qt::WindowFlags flags=0)
 
 ESettingsWidget (QString name, QWidget *parent=0, Qt::WindowFlags flags=0)
 
QString name () const
 
void setName (QString newName)
 
ESettingsModelItemtoModelItem ()
 Converts the ESettingsWidget into an ESettingsModelItem. More...
 
- Public Member Functions inherited from EWidget
 EWidget (QWidget *parent=0, Qt::WindowFlags flags=0)
 
virtual ~EWidget ()
 
void setWindowTitle (const QString &title)
 
void connectByPass (QObject *object)
 Connects all standard signals. More...
 

Static Public Member Functions

static QString mysqlEscape (QString input)
 

Private Slots

void setDumpFile ()
 

Private Member Functions

bool dumpTable (QString table, QTextStream &stream)
 
bool dumpView (QString view, QTextStream &stream)
 
QStringList sortViews (QStringList views)
 
void setRange (int num)
 
void finishedStep ()
 
void actualStep (QString msg)
 
void log (QString msg)
 

Private Attributes

QFileInfo dumpFile
 
QString codecName
 
bool doAbort
 
bool isWorking
 
Ui::EDBBackup * ui
 

Additional Inherited Members

- Protected Slots inherited from EWidget
virtual void errorByPass (const QString &message)
 
virtual void warningByPass (const QString &message)
 
virtual void informationByPass (const QString &message)
 
virtual void reloadEnableActionsByPass ()
 
virtual void addMenuByPass (QMenu *newMenu, const QString &parent, QString before=QString())
 
virtual void addActionByPass (QAction *newAction, const QString &parent, QString before=QString())
 
virtual void addToolBarByPass (QToolBar *newToolBar, Qt::ToolBarArea area=Qt::TopToolBarArea)
 
virtual void addNewDockWidgetByPass (QDockWidget *widget, const Qt::DockWidgetArea &area)
 
virtual void setCentralWidgetByPass (QWidget *centralWidget)
 
virtual void showSettingsByPass ()
 
virtual void showHelpByPass (const QString &page)
 
virtual void showStatusWidgetByPass (QWidget *widget)
 
virtual void reloadSettingsRequestByPass ()
 
- Protected Member Functions inherited from EWidget
void addManagedDockWidget (QDockWidget *widget, const Qt::DockWidgetArea &area, QString actionLabel=QString(), QString actionParent=QString())
 Adds an dock widget via addNewDockWidget() and adds widget to the list of managed dock widgets. More...
 
- Protected Attributes inherited from ESettingsWidget
QString myName
 
- Properties inherited from ESettingsWidget
QString name
 

Detailed Description

ESetupWizardObject to dump SQL databases into a file.

If you need a dialog around it, use EDBBackupDialog instead.

Constructor & Destructor Documentation

EDBBackup::EDBBackup ( ESetupWizardObject newObject,
QWidget *  parent = NULL,
Qt::WindowFlags  flags = 0 
)

+ Here is the call graph for this function:

EDBBackup::~EDBBackup ( )

+ Here is the call graph for this function:

Member Function Documentation

void EDBBackup::abort ( )
slot

+ Here is the caller graph for this function:

void EDBBackup::actualStep ( QString  msg)
private

+ Here is the caller graph for this function:

bool EDBBackup::dumpTable ( QString  table,
QTextStream &  stream 
)
private

dump the sql create statement and the content of the table to stream

Returns
true if all is done correctly and false if an error occurs

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool EDBBackup::dumpView ( QString  view,
QTextStream &  stream 
)
private

we must insert them in correct order, because some need other views

+ Here is the caller graph for this function:

void EDBBackup::exportFinished ( bool  result)
signal

+ Here is the caller graph for this function:

void EDBBackup::exportStarted ( )
signal

+ Here is the caller graph for this function:

bool EDBBackup::finish ( )
slot

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EDBBackup::finishedStep ( )
private

+ Here is the caller graph for this function:

void EDBBackup::log ( QString  msg)
private

+ Here is the caller graph for this function:

QString EDBBackup::mysqlEscape ( QString  input)
static

+ Here is the caller graph for this function:

bool EDBBackup::saveSettings ( QString &  error)
slot
void EDBBackup::setDumpFile ( )
privateslot

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EDBBackup::setRange ( int  num)
private

+ Here is the caller graph for this function:

QStringList EDBBackup::sortViews ( QStringList  views)
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool EDBBackup::working ( ) const

Returns true, if a database dump is running.

If you want to stop it, call abort(). If finished, this function is returns false again and signal exportFinished(bool) is emitted.

+ Here is the caller graph for this function:

Member Data Documentation

QString EDBBackup::codecName
private
bool EDBBackup::doAbort
private
QFileInfo EDBBackup::dumpFile
private
bool EDBBackup::isWorking
private
Ui::EDBBackup* EDBBackup::ui
private

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