include/readerthread.h
author Markus Bröker <mbroeker@largo.homelinux.org>
Tue, 02 Feb 2010 13:20:45 +0100
changeset 7 f23b595e590e
parent 4 fdf04a93faeb
permissions -rw-r--r--
Resize changes on newer qt versions

/*
 *  $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