1 #ifndef PROGRESSTHREAD_H 2 #define PROGRESSTHREAD_H 3 4 #include "thread.h" 5 #include "progress.h" 6 7 class ProgressThread : public Progress 8 { 9 public: ProgressThread(Thread & t)10 ProgressThread(Thread &t) : Progress(), thread(t) 11 { 12 } ~ProgressThread()13 virtual ~ProgressThread() 14 { 15 } DoProgress()16 virtual bool DoProgress() 17 { 18 return(!thread.TestBreak()); 19 } DoProgress(int i,int maxi)20 virtual bool DoProgress(int i, int maxi) 21 { 22 return(!thread.TestBreak()); 23 } 24 protected: 25 Thread &thread; 26 }; 27 28 29 #endif 30 31