00001
00002
00003 #ifndef THREADTIMER_H
00004 #define THREADTIMER_H
00005
00006 #include <QThread>
00007
00008 namespace PSQt {
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 class ThreadTimer : public QThread
00031 {
00032 Q_OBJECT
00033
00034 public:
00035 ThreadTimer(QObject *parent=0, unsigned dt_sec=1, bool pbits=0);
00036
00037 protected:
00038 void run();
00039
00040 private:
00041 unsigned m_thread_number;
00042 unsigned m_count;
00043 unsigned m_dt_sec;
00044 bool m_pbits;
00045 };
00046
00047
00048
00049 }
00050
00051 #endif // THREADTIMER_H
00052
00053
00054
00055
00056
00057