aboutsummaryrefslogtreecommitdiff
path: root/src/RWAHostModel.h
blob: 8697df24f792b0c93554985c0fc5ef4d841b8e8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef RWAHOSTMODEL_H
#define RWAHOSTMODEL_H

#include <QObject>
#include <QAbstractListModel>

#include "RWAHost.h"

class RWAHostModel : public QAbstractListModel {
    Q_OBJECT

public:
    explicit RWAHostModel(QObject * parent = nullptr);
    int rowCount(const QModelIndex& parent = QModelIndex()) const;
    int columnCount(const QModelIndex& parent = QModelIndex()) const;
    QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
    void populate();

private:
    QStringList mDatas;
};

#endif // RWAHOSTMODEL_H