dogcore.h 579 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef DOGCORE_H
  2. #define DOGCORE_H
  3. #include <QObject>
  4. #include <QTimer>
  5. #include <QDateTime>
  6. #include <QVariant>
  7. #include <QFile>
  8. #include <QTextStream>
  9. #include <QProcess>
  10. #include <QStringList>
  11. #include <unistd.h>
  12. #include "logthread.h"
  13. class DogCore : public QObject
  14. {
  15. Q_OBJECT
  16. public:
  17. explicit DogCore(QObject *parent = nullptr);
  18. void start();
  19. unsigned int chkrootprocmem(QString proname);
  20. signals:
  21. public slots:
  22. void time_out();
  23. private:
  24. QTimer *timer;
  25. bool isWorking;
  26. uint chkTime[5];
  27. LogThread *logThread;
  28. };
  29. #endif // DOGCORE_H