QTfrontend/netudpwidget.h
changeset 634 b9db5ff5cfdb
parent 486 7ea71cd3acd5
child 665 5c7bfc8bac6a
equal deleted inserted replaced
633:9050a949db21 634:b9db5ff5cfdb
    20 #define _NET_UDPWIDGET_INCLUDED
    20 #define _NET_UDPWIDGET_INCLUDED
    21 
    21 
    22 #include <QWidget>
    22 #include <QWidget>
    23 #include <QVBoxLayout>
    23 #include <QVBoxLayout>
    24 
    24 
       
    25 #include "netserverslist.h"
       
    26 
    25 class QUdpSocket;
    27 class QUdpSocket;
    26 class QListWidget;
    28 class QListWidget;
    27 
    29 
    28 class HWNetUdpWidget : public QWidget
    30 class HWNetUdpWidget : public HWNetServersWidget
    29 {
    31 {
    30   Q_OBJECT
    32   Q_OBJECT
    31 
    33 
    32  public:
    34  public:
    33   HWNetUdpWidget(QWidget *parent = 0);
    35   HWNetUdpWidget(QWidget *parent = 0);
    34 
       
    35   QListWidget* serversList;
       
    36 
    36 
    37  public slots:
    37  public slots:
    38   void updateList();
    38   void updateList();
    39 
    39 
    40  private slots:
    40  private slots:
    41   void onClientRead();
    41   void onClientRead();
    42 
    42 
    43  private:
    43  private:
    44   QVBoxLayout mainLayout;
       
    45   QUdpSocket* pUdpSocket;
    44   QUdpSocket* pUdpSocket;
    46 };
    45 };
    47 
    46 
    48 #endif // _NET_UDPWIDGET_INCLUDED
    47 #endif // _NET_UDPWIDGET_INCLUDED