effectui 추가
형태소분석기 숫자 정렬 추가 batch run 시 결과값이 올바르게 나오지 않는 현상 디버깅 git-svn-id: svn://192.168.0.12/source@297 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
48
EffectUI/stimer.h
Normal file
48
EffectUI/stimer.h
Normal file
@@ -0,0 +1,48 @@
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user