dogcore.h 376 B

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