include/readerthread.h
author Markus Bröker <mbroeker@largo.homelinux.org>
Sat, 13 Dec 2008 15:47:44 +0100
changeset 1 9de88b525a59
parent 0 826dd5531eb0
child 3 724e07a9f155
permissions -rw-r--r--
missing ui files added

/*
 *  $Id: readerthread.h 2 2007-12-22 14:15:30Z mbroeker $
 * $URL: http://localhost/svn/cpp/qMonitor/trunk/include/readerthread.h $
 */

#ifndef READERTHREAD_H
#define READERTHREAD_H

#include "monitor.h"
#include <qthread.h>
#include <qevent.h>
#include "PacketParser.h"

#define MSG_EVENT 65432

class Monitor;

class DataChangeEvent : public QEvent {
 public:
	DataChangeEvent(QString msg_)
		: QEvent((QEvent::Type)MSG_EVENT)
		{
			msg = msg_;

		}

	QString Text() const { return msg; }
 private:
	QString msg;
};

class readerThread : public QThread {
 public:
	readerThread(Monitor*);
	virtual void run();
 private:
	Monitor *handle;
};

#endif