Go to the documentation of this file.00001 #ifndef SQLDUMP_H
00002 #define SQLDUMP_H
00003
00004 #include <QWidget>
00005 #include <QtGui>
00006 #include <QtSql>
00007 #include "sqldumpthread.h"
00008 namespace Ui {
00009 class SQLDump;
00010 }
00011
00012 class SQLDump : public QWidget
00013 {
00014 Q_OBJECT
00015
00016 public:
00017 explicit SQLDump(QWidget *parent = 0);
00018 ~SQLDump();
00019 QSqlDatabase db;
00020 QString dbName;
00021 QStringList dbList;
00022 signals:
00023 void closeWindow();
00024 public slots:
00025 void startBackup();
00026 void setDb(QString newDbName);
00027 private:
00028 Ui::SQLDump *ui;
00029 QIcon ico_db;
00030 QIcon ico_folder;
00031 QIcon ico_table;
00032 QIcon ico_view;
00033 QIcon ico_proc;
00034 bool comboChanged;
00035 SqlDumpThread *dumpThread;
00036 QString objectName;
00037 QString objectType;
00038 int objectPosition;
00039 int objectCount;
00040
00041
00042 private slots:
00043 void on_trvObjects_itemClicked(QTreeWidgetItem* item, int column);
00044 void on_cmdClose_clicked();
00045 void on_cmdExport_clicked();
00046 void on_cboDbList_currentIndexChanged(QString );
00047 void on_cmdSelectFile_clicked();
00048 void generateQuery();
00049 void objectNameChanged(QString);
00050 void objectTypeChanged(QString);
00051 void objectPositionChanged(int);
00052 void objectCountChanged(int);
00053 void updateProgress();
00054 void backupComplete();
00055 void backup();
00056 void backupComplete(QString);
00057 void totalProgress(int);
00058 };
00059
00060 #endif // SQLDUMP_H