00001 00002 #ifndef _QGUI_PULSE_NOTIFIER_HH_ 00003 #define _QGUI_PULSE_NOTIFIER_HH_ 00004 00005 class TThread; 00006 class QGuiSharedMemory; 00007 00008 #include <TQObject.h> 00009 00020 class QGuiPulseNotifier: public TQObject 00021 { 00022 public: 00024 QGuiPulseNotifier(); 00025 00027 virtual ~QGuiPulseNotifier(); 00028 00032 void Start(); 00036 void Stop(); 00037 00039 void PulseFired(unsigned long pulseId) { Emit("PulseFired(Long_t)", (Long_t)pulseId); } //*SIGNAL* 00040 private: 00041 00042 static bool gRunning; 00043 00045 static void* StartThread(void* arg); 00046 00048 void MakeThread(); 00049 TThread *fThread; 00050 QGuiSharedMemory *fMemory; 00051 ClassDef(QGuiPulseNotifier,0); 00052 }; 00053 00054 #endif