diff -r 0523b15353a2 -r b2f914786d87 QTfrontend/netwwwwidget.h --- a/QTfrontend/netwwwwidget.h Fri Dec 14 16:18:42 2007 +0000 +++ b/QTfrontend/netwwwwidget.h Sat Dec 15 16:44:13 2007 +0000 @@ -19,6 +19,10 @@ #ifndef _NET_WWWWIDGET_INCLUDED #define _NET_WWWWIDGET_INCLUDED +#include +#include +#include +#include #include "netserverslist.h" class QListWidget; @@ -41,4 +45,27 @@ QHttp * http; }; +class HWNetWwwModel : public QAbstractTableModel +{ + Q_OBJECT + +public: + HWNetWwwModel(QObject *parent = 0); + + QVariant data(const QModelIndex &index, int role) const; + QVariant headerData(int section, Qt::Orientation orientation, int role) const; + int rowCount(const QModelIndex & parent) const; + int columnCount(const QModelIndex & parent) const; + +private: + QHttp * http; + QList games; + +private slots: + void onClientRead(int id, bool error); + +public slots: + void updateList(); +}; + #endif // _NET_WWWWIDGET_INCLUDED