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 00014 { 00018 class MVReceiver : public QThread 00019 { 00020 Q_OBJECT 00021 00022 public: 00027 explicit MVReceiver(fhicl::ParameterSet pset); 00028 00032 virtual ~MVReceiver() {} 00033 00037 void stop() { stopRequested_ = true; } 00038 protected: 00042 bool stopRequested_; 00043 signals: 00048 void NewMessage(qt_mf_msg const& msg); 00049 }; 00050 } 00051 00052 #endif //MVRECEIVER_H