• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

examples/example7/CameraThread.h

Go to the documentation of this file.
00001 #ifndef CAMERA_THREAD_H
00002 #define CAMERA_THREAD_H
00003 
00006 #include <QThread>
00007 
00008 class OverlayWidget;
00009 class InfoWidget;
00010 
00011 class CameraThread : public QThread {
00012     Q_OBJECT;
00013 
00014   public:
00015     CameraThread(OverlayWidget *o, QObject *parent = NULL) : QThread(parent) {
00016         overlay = o;
00017         keepGoing = true;
00018     }
00019         
00020   public slots:
00021     void stop() {
00022         printf("Stopping!\n");
00023         keepGoing = false;
00024     }
00025     
00026   protected:
00027     void run();
00028 
00029   private:
00030     bool keepGoing;
00031     OverlayWidget *overlay;
00032 };
00033 
00034 #endif

Generated on Fri Sep 24 2010 15:52:59 for FCam by  doxygen 1.7.1