123456789101112131415161718192021222324252627282930 |
- #ifndef LOGTHREAD_H
- #define LOGTHREAD_H
- #include <QThread>
- #include <QStringList>
- #include <QDate>
- #include <QDir>
- #include <QFile>
- class LogThread : public QThread
- {
- Q_OBJECT
- public:
- explicit LogThread(QObject *parent = nullptr);
- void appendData(QString data);
- void appendWrongData(QString data);
- void run();
- void stop();
- signals:
- public slots:
- private:
- QFile *file,*wfile;
- QStringList dataList;
- QStringList wrongList;
- int day;
- bool keep;
- };
- #endif // LOGTHREAD_H
|