QTfrontend/netserverslist.h
changeset 2948 3f21a9dc93d0
parent 1066 1f1b3686a2b0
child 3236 4ab3917d7d44
equal deleted inserted replaced
2947:803b277e4894 2948:3f21a9dc93d0
    22 #include <QAbstractTableModel>
    22 #include <QAbstractTableModel>
    23 #include <QStringList>
    23 #include <QStringList>
    24 
    24 
    25 class HWNetServersModel : public QAbstractTableModel
    25 class HWNetServersModel : public QAbstractTableModel
    26 {
    26 {
    27 	Q_OBJECT
    27     Q_OBJECT
    28 
    28 
    29 public:
    29 public:
    30 	HWNetServersModel(QObject *parent = 0);
    30     HWNetServersModel(QObject *parent = 0);
    31 
    31 
    32 	QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    32     QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    33 	int rowCount(const QModelIndex & parent) const;
    33     int rowCount(const QModelIndex & parent) const;
    34 	int columnCount(const QModelIndex & parent) const;
    34     int columnCount(const QModelIndex & parent) const;
    35 
    35 
    36 public slots:
    36 public slots:
    37 	virtual void updateList();
    37     virtual void updateList();
    38 
    38 
    39 protected:
    39 protected:
    40 	QList<QStringList> games;
    40     QList<QStringList> games;
    41 };
    41 };
    42 
    42 
    43 #endif // _NET_SERVERSLIST_INCLUDED
    43 #endif // _NET_SERVERSLIST_INCLUDED