WIP: add Qt Quick HomeScreen UI
[staging/HomeScreen.git] / HomeScreenNG / statusbarmodel.h
1 #ifndef STATUSBARMODEL_H
2 #define STATUSBARMODEL_H
3
4 #include <QtCore/QAbstractListModel>
5
6 class StatusBarModel : public QAbstractListModel
7 {
8     Q_OBJECT
9 public:
10     explicit StatusBarModel(QObject *parent = nullptr);
11     ~StatusBarModel();
12
13     int rowCount(const QModelIndex &parent = QModelIndex()) const override;
14
15     QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
16     QHash<int, QByteArray> roleNames() const override;
17
18 private:
19     class Private;
20     Private *d;
21 };
22
23 #endif // STATUSBARMODEL_H