QTfrontend/model/playerslistmodel.h
author unc0rr
Sat, 06 Oct 2012 01:09:41 +0400
changeset 7723 ca05b576ec74
child 7725 4ad05a478c6c
permissions -rw-r--r--
Start moving to players list model.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7723
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
     1
#ifndef PLAYERSLISTMODEL_H
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
     2
#define PLAYERSLISTMODEL_H
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
     3
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
     4
#include <QStringListModel>
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
     5
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
     6
class PlayersListModel : public QStringListModel
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
     7
{
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
     8
    Q_OBJECT
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
     9
public:
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
    10
    explicit PlayersListModel(QObject *parent = 0);
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
    11
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
    12
signals:
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
    13
    
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
    14
public slots:
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
    15
    void addPlayer(const QString & nickname);
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
    16
    
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
    17
};
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
    18
ca05b576ec74 Start moving to players list model.
unc0rr
parents:
diff changeset
    19
#endif // PLAYERSLISTMODEL_H