Files
clients/EffectUI/stimer.h
admin 85c47edea3 effectui 추가
형태소분석기 숫자 정렬 추가
batch run 시 결과값이 올바르게 나오지 않는 현상 디버깅

git-svn-id: svn://192.168.0.12/source@297 8346c931-da38-4b9b-9d4c-e48b93cbd075
2016-10-06 07:54:45 +00:00

49 lines
826 B
C++

#ifndef STIMER
#define STIMER
#include <QObject>
#include <memory>
#include <QSet>
#include <QVector>
class QTimer;
class STimer:public QObject
{
Q_OBJECT
private:
std::unique_ptr<QTimer> m_pTimer;
QSet<int> m_setTime;
int m_nPreviousHour;
public:
explicit STimer();
explicit STimer(int time);
STimer(QVector<int> times);
STimer(const STimer& other) = delete;
STimer& operator=(const STimer& other) = delete;
void start();
void stop();
bool isActive() const noexcept;
void set(int time);
void set(QVector<int> times);
void unset(int time);
void unset(QVector<int> times);
int timerId() const;
~STimer();
signals:
void timeout();
private slots:
void checkTimeout();
};
#endif // STIMER