mytimer.h 378 B

123456789101112131415161718192021222324252627
  1. #ifndef MYTIMER_H
  2. #define MYTIMER_H
  3. #include "NetItemRunable.h"
  4. #include <QTimer>
  5. class MyTimer : public QTimer
  6. {
  7. Q_OBJECT
  8. public:
  9. MyTimer(QObject *parent = nullptr);
  10. ~MyTimer();
  11. private:
  12. NetItemRunable* m_pRunable;
  13. bool m_bSJS;
  14. int m_nSendDataCount;
  15. public:
  16. void CreateRunableFactory();
  17. bool m_bRuning;
  18. public slots:
  19. void timout_Slot();
  20. };
  21. #endif // MYTIMER_H