QTfrontend/netserverslist.h
changeset 668 0d7683a66d61
parent 665 5c7bfc8bac6a
child 883 07a568ba44e0
equal deleted inserted replaced
667:194dc62d1519 668:0d7683a66d61
    18 
    18 
    19 #ifndef _NET_SERVERSLIST_INCLUDED
    19 #ifndef _NET_SERVERSLIST_INCLUDED
    20 #define _NET_SERVERSLIST_INCLUDED
    20 #define _NET_SERVERSLIST_INCLUDED
    21 
    21 
    22 #include <QAbstractTableModel>
    22 #include <QAbstractTableModel>
       
    23 #include <QStringList>
    23 
    24 
    24 class HWNetServersModel : public QAbstractTableModel
    25 class HWNetServersModel : public QAbstractTableModel
    25 {
    26 {
    26 	Q_OBJECT
    27 	Q_OBJECT
    27 
    28 
    28 public:
    29 public:
    29 	HWNetServersModel(QObject *parent = 0);
    30 	HWNetServersModel(QObject *parent = 0);
    30 
    31 
       
    32 	QVariant headerData(int section, Qt::Orientation orientation, int role) const;
       
    33 	int rowCount(const QModelIndex & parent) const;
       
    34 	int columnCount(const QModelIndex & parent) const;
       
    35 
    31 public slots:
    36 public slots:
    32 	virtual void updateList();
    37 	virtual void updateList();
       
    38 
       
    39 protected:
       
    40 	QList<QStringList> games;
    33 };
    41 };
    34 
    42 
    35 #endif // _NET_SERVERSLIST_INCLUDED
    43 #endif // _NET_SERVERSLIST_INCLUDED