QTfrontend/netwwwwidget.h
changeset 668 0d7683a66d61
parent 667 194dc62d1519
child 883 07a568ba44e0
equal deleted inserted replaced
667:194dc62d1519 668:0d7683a66d61
    17  */
    17  */
    18 
    18 
    19 #ifndef _NET_WWWWIDGET_INCLUDED
    19 #ifndef _NET_WWWWIDGET_INCLUDED
    20 #define _NET_WWWWIDGET_INCLUDED
    20 #define _NET_WWWWIDGET_INCLUDED
    21 
    21 
    22 #include <QStringList>
       
    23 #include "netserverslist.h"
    22 #include "netserverslist.h"
    24 
    23 
    25 class QHttp;
    24 class QHttp;
    26 
    25 
    27 class HWNetWwwModel : public HWNetServersModel
    26 class HWNetWwwModel : public HWNetServersModel
    30 
    29 
    31 public:
    30 public:
    32 	HWNetWwwModel(QObject *parent = 0);
    31 	HWNetWwwModel(QObject *parent = 0);
    33 
    32 
    34 	QVariant data(const QModelIndex &index, int role) const;
    33 	QVariant data(const QModelIndex &index, int role) const;
    35 	QVariant headerData(int section, Qt::Orientation orientation, int role) const;
       
    36 	int rowCount(const QModelIndex & parent) const;
       
    37 	int columnCount(const QModelIndex & parent) const;
       
    38 
    34 
    39 private:
    35 private:
    40 	QHttp * http;
    36 	QHttp * http;
    41 	QList<QStringList> games;
       
    42 
    37 
    43 private slots:
    38 private slots:
    44 	void onClientRead(int id, bool error);
    39 	void onClientRead(int id, bool error);
    45 
    40 
    46 public slots:
    41 public slots: