#ifndef DATABASETHREAD_H #define DATABASETHREAD_H #include #include #include #include #include #include class DatabaseThread : public QThread { Q_OBJECT public: explicit DatabaseThread(QObject *parent,QSqlDatabase *db); void run(); void stop(); void appendSql(QString sql); signals: void dbdata_log(QString log); public slots: private: int hour; bool keep; QSqlDatabase *Db; QStringList sqlList; }; #endif // DATABASETHREAD_H