include/readerthread.h
changeset 0 826dd5531eb0
child 3 724e07a9f155
equal deleted inserted replaced
-1:000000000000 0:826dd5531eb0
       
     1 /*
       
     2  *  $Id: readerthread.h 2 2007-12-22 14:15:30Z mbroeker $
       
     3  * $URL: http://localhost/svn/cpp/qMonitor/trunk/include/readerthread.h $
       
     4  */
       
     5 
       
     6 #ifndef READERTHREAD_H
       
     7 #define READERTHREAD_H
       
     8 
       
     9 #include "monitor.h"
       
    10 #include <qthread.h>
       
    11 #include <qevent.h>
       
    12 #include "PacketParser.h"
       
    13 
       
    14 #define MSG_EVENT 65432
       
    15 
       
    16 class Monitor;
       
    17 
       
    18 class DataChangeEvent : public QEvent {
       
    19  public:
       
    20 	DataChangeEvent(QString msg_)
       
    21 		: QEvent((QEvent::Type)MSG_EVENT)
       
    22 		{
       
    23 			msg = msg_;
       
    24 
       
    25 		}
       
    26 
       
    27 	QString Text() const { return msg; }
       
    28  private:
       
    29 	QString msg;
       
    30 };
       
    31 
       
    32 class readerThread : public QThread {
       
    33  public:
       
    34 	readerThread(Monitor*);
       
    35 	virtual void run();
       
    36  private:
       
    37 	Monitor *handle;
       
    38 };
       
    39 
       
    40 #endif