123456789101112131415161718192021222324252627282930 |
- #ifndef BEEPTHREAD_H
- #define BEEPTHREAD_H
- #include <QThread>
- #include "../ycapi/ycapi.h"
- class BeepThread : public QThread
- {
- Q_OBJECT
- public:
- enum {
- NoBeep,
- OkBeep,
- BtnBeep,
- WrongBeep
- }BeepType;
- explicit BeepThread(QObject *parent = 0, Ycapi *api=0);
- void setBeep(int type);
- void run();
-
- signals:
- void btn_click();
- public slots:
-
- private:
- Ycapi *api;
- int type;
- };
- #endif // BEEPTHREAD_H
|