logthread.h 419 B

123456789101112131415161718192021222324252627
  1. #ifndef LOGTHREAD_H
  2. #define LOGTHREAD_H
  3. #include <QThread>
  4. #include <QStringList>
  5. #include <QDateTime>
  6. #include <QFile>
  7. class LogThread : public QThread
  8. {
  9. Q_OBJECT
  10. public:
  11. explicit LogThread(QObject *parent = 0);
  12. void appendLog(QString log);
  13. void appendDbgLog(QString log);
  14. void run();
  15. signals:
  16. public slots:
  17. private:
  18. QStringList logList;
  19. QStringList dbgList;
  20. };
  21. #endif // LOGTHREAD_H