QTfrontend/netudpwidget.h
author displacer
Thu, 08 Feb 2007 21:11:58 +0000
changeset 420 6cdfc07dceed
parent 416 595d8663254d
child 486 7ea71cd3acd5
permissions -rw-r--r--
netserver and netonnectedclient splited to different 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
416
595d8663254d update button for udp servers list
displacer
parents: 413
diff changeset
    17
  QListWidget* serversList;
595d8663254d update button for udp servers list
displacer
parents: 413
diff changeset
    18
595d8663254d update button for udp servers list
displacer
parents: 413
diff changeset
    19
 public slots:
595d8663254d update button for udp servers list
displacer
parents: 413
diff changeset
    20
  void updateList();
595d8663254d update button for udp servers list
displacer
parents: 413
diff changeset
    21
413
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    22
 private slots:
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    23
  void onClientRead();
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
 private:
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    26
  QVBoxLayout mainLayout;
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    27
  QUdpSocket* pUdpSocket;
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    28
};
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    29
523f1769f2bc udp server detecting experimental version (added files)
displacer
parents:
diff changeset
    30
#endif // _NET_UDPWIDGET_INCLUDED