QTfrontend/netudpwidget.h
changeset 668 0d7683a66d61
parent 667 194dc62d1519
child 883 07a568ba44e0
equal deleted inserted replaced
667:194dc62d1519 668:0d7683a66d61
    18  */
    18  */
    19 
    19 
    20 #ifndef _NET_UDPWIDGET_INCLUDED
    20 #ifndef _NET_UDPWIDGET_INCLUDED
    21 #define _NET_UDPWIDGET_INCLUDED
    21 #define _NET_UDPWIDGET_INCLUDED
    22 
    22 
    23 #include <QStringList>
       
    24 #include "netserverslist.h"
    23 #include "netserverslist.h"
    25 
    24 
    26 class QUdpSocket;
    25 class QUdpSocket;
    27 
    26 
    28 class HWNetUdpModel : public HWNetServersModel
    27 class HWNetUdpModel : public HWNetServersModel
    31 
    30 
    32 public:
    31 public:
    33 	HWNetUdpModel(QObject *parent = 0);
    32 	HWNetUdpModel(QObject *parent = 0);
    34 
    33 
    35 	QVariant data(const QModelIndex &index, int role) const;
    34 	QVariant data(const QModelIndex &index, int role) const;
    36 	QVariant headerData(int section, Qt::Orientation orientation, int role) const;
       
    37 	int rowCount(const QModelIndex & parent) const;
       
    38 	int columnCount(const QModelIndex & parent) const;
       
    39 
    35 
    40 public slots:
    36 public slots:
    41 	void updateList();
    37 	void updateList();
    42 
    38 
    43 private slots:
    39 private slots:
    44 	void onClientRead();
    40 	void onClientRead();
    45 
    41 
    46 private:
    42 private:
    47 	QUdpSocket* pUdpSocket;
    43 	QUdpSocket* pUdpSocket;
    48 	QList<QStringList> games;
       
    49 };
    44 };
    50 
    45 
    51 #endif // _NET_UDPWIDGET_INCLUDED
    46 #endif // _NET_UDPWIDGET_INCLUDED