00001 #ifndef MFVIEWER_MVRECEIVER_H
00002 #define MFVIEWER_MVRECEIVER_H
00003
00004 #include <string>
00005
00006 #include "fhiclcpp/ParameterSet.h"
00007
00008 #include "mfextensions/Receivers/qt_mf_msg.hh"
00009
00010 #include <QtCore/QThread>
00011 #include <iostream>
00012
00013 namespace mfviewer {
00017 class MVReceiver : public QThread {
00018 Q_OBJECT
00019
00020 public:
00025 explicit MVReceiver(fhicl::ParameterSet pset);
00026
00030 virtual ~MVReceiver() {}
00031
00035 void stop() { stopRequested_ = true; }
00036
00037 protected:
00041 bool stopRequested_;
00042 signals:
00048 void NewMessage(qt_mf_msg const& msg);
00049 };
00050 }
00051
00052 #endif // MVRECEIVER_H