17#ifndef LOMIRI_SHELL_APPLICATION_MIRSURFACELISTINTERFACE_H
18#define LOMIRI_SHELL_APPLICATION_MIRSURFACELISTINTERFACE_H
20#include <QAbstractListModel>
22#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
23Q_MOC_INCLUDE(
"MirSurfaceInterface.h")
28namespace application {
61 SurfaceRole = Qt::UserRole,
66 virtual ~MirSurfaceListInterface() {}
77 QHash<int, QByteArray> roleNames()
const override {
78 QHash<int, QByteArray> roleNames;
79 roleNames.insert(SurfaceRole,
"surface");
83 int count()
const {
return rowCount(); }
85 MirSurfaceInterface *
first() {
96 void countChanged(
int count);
Holds a Mir surface. Pretty much an opaque class.
Definition MirSurfaceInterface.h:46
Interface for a list model of MirSurfaces.
Definition MirSurfaceListInterface.h:36
int count
Number of surfaces in this model.
Definition MirSurfaceListInterface.h:45
virtual Q_INVOKABLE MirSurfaceInterface * get(int index)=0
Returns the surface at the specified index.
Roles
The Roles supported by the model.
Definition MirSurfaceListInterface.h:60
lomiri::shell::application::MirSurfaceInterface * first
The first (index 0) surface in this model.
Definition MirSurfaceListInterface.h:53
Top-level namespace for all things Lomiri-related.
Definition Version.h:38