QTfrontend/netudpwidget.h
author displacer
Wed, 07 Feb 2007 22:59:49 +0000
changeset 413 523f1769f2bc
child 416 595d8663254d
permissions -rw-r--r--
udp server detecting experimental version (added files)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
413
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
     1
#ifndef _NET_UDPWIDGET_INCLUDED
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
     2
#define _NET_UDPWIDGET_INCLUDED
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
     3
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
     4
#include <QWidget>
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
     5
#include <QVBoxLayout>
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
     6
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
     7
class QUdpSocket;
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
     8
class QListWidget;
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
     9
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    10
class HWNetUdpWidget : public QWidget
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    11
{
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    12
  Q_OBJECT
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    13
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    14
 public:
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    15
  HWNetUdpWidget(QWidget *parent = 0);
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    16
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    17
 private slots:
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    18
  void onClientRead();
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    19
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    20
 private:
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    21
  QVBoxLayout mainLayout;
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    22
  QUdpSocket* pUdpSocket;
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    23
  QListWidget* serversList;
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    24
};
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    25
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    26
#endif // _NET_UDPWIDGET_INCLUDED