include/monitor.h
author Markus Bröker <mbroeker@largo.homelinux.org>
Sat, 13 Dec 2008 15:47:48 +0100
changeset 3 724e07a9f155
parent 0 826dd5531eb0
child 4 fdf04a93faeb
permissions -rw-r--r--
PacketWriter.cpp: cstdlib header added Source Base indented with GNU indent

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

#ifndef MONITOR_H
#define MONITOR_H

#include <readerthread.h>
#include <qevent.h>
#include "../ui_monitor.h"

class readerThread;

class Monitor:public QWidget, private Ui::qMonitor {
  Q_OBJECT public:
    Monitor (QWidget * parent = 0);
    virtual ~ Monitor ();
    int getPort ();
    int getProtocol ();

  protected:
    virtual void customEvent (QEvent *);
    std::map < QString, int >Protocol;

  private:
    readerThread * reader;

    public slots:virtual void startCapture ();
    virtual void stopCapture ();

};

#endif