dogcore.h 365 B

12345678910111213141516171819202122232425262728
  1. #ifndef DOGCORE_H
  2. #define DOGCORE_H
  3. #include <QObject>
  4. #include <QTimer>
  5. #include <QDateTime>
  6. class DogCore : public QObject
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit DogCore(QObject *parent = nullptr);
  11. ~DogCore();
  12. void start();
  13. signals:
  14. public slots:
  15. void time_out();
  16. private:
  17. int hour;
  18. uint chkTime;
  19. QTimer *timer;
  20. };
  21. #endif // DOGCORE_H