18c75196e3383446daaaa415dc2e22df78820350.svn-base 466 B

123456789101112131415161718192021222324252627282930
  1. #ifndef BEEPTHREAD_H
  2. #define BEEPTHREAD_H
  3. #include <QThread>
  4. #include "../ycapi/ycapi.h"
  5. class BeepThread : public QThread
  6. {
  7. Q_OBJECT
  8. public:
  9. enum {
  10. NoBeep,
  11. OkBeep,
  12. BtnBeep,
  13. WrongBeep
  14. }BeepType;
  15. explicit BeepThread(QObject *parent = 0, Ycapi *api=0);
  16. void setBeep(int type);
  17. void run();
  18. signals:
  19. void btn_click();
  20. public slots:
  21. private:
  22. Ycapi *api;
  23. int type;
  24. };
  25. #endif // BEEPTHREAD_H