kexi
sqlitevacuum.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef SQLITE_VACUUM_H
00021 #define SQLITE_VACUUM_H
00022
00023 #include <qobject.h>
00024 #include <qstring.h>
00025
00026 #include <kexiutils/tristate.h>
00027
00028 class QProcess;
00029 class KTempFile;
00030 class KProgressDialog;
00031
00033
00045 class SQLiteVacuum : public QObject
00046 {
00047 Q_OBJECT
00048 public:
00049 SQLiteVacuum(const QString& filePath);
00050 ~SQLiteVacuum();
00051
00055 tristate run();
00056
00057 public slots:
00058 void readFromStdout();
00059 void processExited();
00060 void cancelClicked();
00061
00062 protected:
00063 QString m_filePath;
00064 QProcess *m_process;
00065 KProgressDialog* m_dlg;
00066 int m_percent;
00067 tristate m_result;
00068 };
00069
00070 #endif
|