Go to the documentation of this file.00001 #ifndef EXPORTTABLETHREAD_H
00002 #define EXPORTTABLETHREAD_H
00003
00004 #include <QThread>
00005 #include <QtSql>
00006
00007 class ExportTableThread : public QThread
00008 {
00009 Q_OBJECT
00010 public:
00011 explicit ExportTableThread(QObject *parent = 0);
00012 QString strQuery;
00013 void run(QSqlDatabase db, QString dbName, QString tableName, QString fileName,
00014 QString fieldDeliminator, QString fieldEncloser, QString lineDeliminator,
00015 bool addColumnsOnTop, bool CSV, bool HTML, bool XML, bool Excel);
00016 QStringList columnList;
00017 signals:
00018 void rowCount(int);
00019 void finishedRows(int);
00020 void completed(bool);
00021 public slots:
00022
00023 };
00024
00025 #endif // EXPORTTABLETHREAD_H