QTfrontend/model/netserverslist.h
changeset 6616 f77bb02b669f
parent 6061 15b4b485a1c5
child 6700 e04da46ee43c
equal deleted inserted replaced
6615:65602f1ef0f8 6616:f77bb02b669f
    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