include/monitor.h
changeset 3 724e07a9f155
parent 0 826dd5531eb0
child 4 fdf04a93faeb
equal deleted inserted replaced
2:62ddf5dd4db0 3:724e07a9f155
    10 #include <qevent.h>
    10 #include <qevent.h>
    11 #include "../ui_monitor.h"
    11 #include "../ui_monitor.h"
    12 
    12 
    13 class readerThread;
    13 class readerThread;
    14 
    14 
    15 class Monitor : public QWidget, private Ui::qMonitor
    15 class Monitor:public QWidget, private Ui::qMonitor {
    16 {
    16   Q_OBJECT public:
    17 	Q_OBJECT
    17     Monitor (QWidget * parent = 0);
       
    18     virtual ~ Monitor ();
       
    19     int getPort ();
       
    20     int getProtocol ();
    18 
    21 
    19     public:
    22   protected:
    20 	Monitor(QWidget *parent = 0);
    23     virtual void customEvent (QEvent *);
    21 	virtual ~Monitor();
    24     std::map < QString, int >Protocol;
    22 	int getPort();
       
    23 	int getProtocol();
       
    24 
    25 
    25  protected:
    26   private:
    26 	virtual void customEvent( QEvent* );
    27     readerThread * reader;
    27 	std::map<QString, int> Protocol;
       
    28 
    28 
    29  private:
    29     public slots:virtual void startCapture ();
    30 	readerThread *reader;
    30     virtual void stopCapture ();
    31 
       
    32      public slots:
       
    33 	virtual void startCapture();
       
    34 	virtual void stopCapture();
       
    35 
    31 
    36 };
    32 };
    37 
    33 
    38 #endif
    34 #endif