Go to the documentation of this file.00001 #ifndef _QWT_SAMPLING_THREAD_H_
00002 #define _QWT_SAMPLING_THREAD_H_
00003
00004 #include "qwt_global.h"
00005 #include <qthread.h>
00006
00019 class QWT_EXPORT QwtSamplingThread: public QThread
00020 {
00021 Q_OBJECT
00022
00023 public:
00024 virtual ~QwtSamplingThread();
00025
00026 double interval() const;
00027 double elapsed() const;
00028
00029 public Q_SLOTS:
00030 void setInterval( double interval );
00031 void stop();
00032
00033 protected:
00034 explicit QwtSamplingThread( QObject *parent = NULL );
00035
00036 virtual void run();
00037
00043 virtual void sample( double elapsed ) = 0;
00044
00045 private:
00046 class PrivateData;
00047 PrivateData *d_data;
00048 };
00049
00050 #endif