#ifndef SNCTIMER_H #define SNCTIMER_H #include #include #include "SNCCore_global.h" class SNCCORESHARED_EXPORT SNCTimer : public QThread { Q_OBJECT public: explicit SNCTimer(int seconds,QObject *parent = 0); void abort(); protected: void run(); signals: void timerOut(); public slots: private: bool m_stop; int m_seconds; }; #endif // SNCTIMER_H