QTfrontend/netwwwwidget.h
changeset 662 b2f914786d87
parent 645 c71fe8b942ee
child 664 f0af2401f981
--- 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 <QAbstractTableModel>
+#include <QFile>
+#include <QDateTime>
+#include <QVector>
 #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<QStringList> games;
+
+private slots:
+	void onClientRead(int id, bool error);
+
+public slots:
+	void updateList();
+};
+
 #endif // _NET_WWWWIDGET_INCLUDED