Refactor utilities package.
This commit is contained in:
26
src/utilities/Locker.h
Normal file
26
src/utilities/Locker.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef LOCKER_H
|
||||
#define LOCKER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class QTimer;
|
||||
class Locker : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static Locker* getInstance();
|
||||
void start();
|
||||
void setTimer(int aInterval);
|
||||
|
||||
public slots:
|
||||
void refreshTimer();
|
||||
void coverScreen();
|
||||
private:
|
||||
Locker();
|
||||
~Locker();
|
||||
|
||||
QTimer* mScreenTimer;
|
||||
int mCounter;
|
||||
};
|
||||
|
||||
#endif // LOCKER_H
|
||||
Reference in New Issue
Block a user