numlockmanager/statusshow.h
2023-09-01 14:13:41 +00:00

30 lines
488 B
C++

#ifndef STATUSSHOW_H
#define STATUSSHOW_H
#include <QThread>
#include "wl_numlock.h"
class StatusShow : public QThread
{
Q_OBJECT
public:
StatusShow(){}
~StatusShow(){ delete key_manager; }
private:
WLKeyManager * key_manager;
signals:
void status(bool);
protected:
void run() override {
forever{
emit status(key_manager->getNumLockState());
msleep(500);
}
}
};
#endif // STATUSSHOW_H