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, InfoWidget *i, QObject *parent = NULL) : QThread(parent) {
00016 overlay = o;
00017 info = i;
00018 keepGoing = true;
00019 }
00020
00021
00022 public slots:
00023 void stop() {
00024 printf("Stopping!\n");
00025 keepGoing = false;
00026 }
00027
00028 protected:
00029 void run();
00030
00031 private:
00032 bool keepGoing;
00033 OverlayWidget *overlay;
00034 InfoWidget *info;
00035 };
00036
00037 #endif