WIP: add Qt Quick HomeScreen UI
[staging/HomeScreen.git] / HomeScreenNG / statusbarmodel.h
diff --git a/HomeScreenNG/statusbarmodel.h b/HomeScreenNG/statusbarmodel.h
new file mode 100644 (file)
index 0000000..743e816
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef STATUSBARMODEL_H
+#define STATUSBARMODEL_H
+
+#include <QtCore/QAbstractListModel>
+
+class StatusBarModel : public QAbstractListModel
+{
+    Q_OBJECT
+public:
+    explicit StatusBarModel(QObject *parent = nullptr);
+    ~StatusBarModel();
+
+    int rowCount(const QModelIndex &parent = QModelIndex()) const override;
+
+    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
+    QHash<int, QByteArray> roleNames() const override;
+
+private:
+    class Private;
+    Private *d;
+};
+
+#endif // STATUSBARMODEL_H