QTfrontend/net/netudpwidget.h
changeset 6616 f77bb02b669f
parent 6060 fdfc01419815
child 6700 e04da46ee43c
equal deleted inserted replaced
6615:65602f1ef0f8 6616:f77bb02b669f
    24 
    24 
    25 class QUdpSocket;
    25 class QUdpSocket;
    26 
    26 
    27 class HWNetUdpModel : public HWNetServersModel
    27 class HWNetUdpModel : public HWNetServersModel
    28 {
    28 {
    29   Q_OBJECT
    29         Q_OBJECT
    30 
    30 
    31 public:
    31     public:
    32     HWNetUdpModel(QObject *parent = 0);
    32         HWNetUdpModel(QObject *parent = 0);
    33 
    33 
    34     QVariant data(const QModelIndex &index, int role) const;
    34         QVariant data(const QModelIndex &index, int role) const;
    35 
    35 
    36 public slots:
    36     public slots:
    37     void updateList();
    37         void updateList();
    38 
    38 
    39 private slots:
    39     private slots:
    40     void onClientRead();
    40         void onClientRead();
    41 
    41 
    42 private:
    42     private:
    43     QUdpSocket* pUdpSocket;
    43         QUdpSocket* pUdpSocket;
    44 };
    44 };
    45 
    45 
    46 #endif // _NET_UDPWIDGET_INCLUDED
    46 #endif // _NET_UDPWIDGET_INCLUDED