17 #ifndef UNITY_SHELL_APPLICATION_MIRSURFACELISTINTERFACE_H 18 #define UNITY_SHELL_APPLICATION_MIRSURFACELISTINTERFACE_H 20 #include <QAbstractListModel> 24 namespace application {
26 class MirSurfaceInterface;
57 SurfaceRole = Qt::UserRole,
73 QHash<int, QByteArray> roleNames()
const override {
74 QHash<int, QByteArray> roleNames;
75 roleNames.insert(SurfaceRole,
"surface");
79 int count()
const {
return rowCount(); }
92 void countChanged(
int count);
103 #endif // UNITY_SHELL_APPLICATION_MIRSURFACELISTINTERFACE_H Roles
The Roles supported by the model.
Definition: MirSurfaceListInterface.h:56
Top-level namespace for all things Unity-related.
Definition: Version.h:37
Interface for a list model of MirSurfaces.
Definition: MirSurfaceListInterface.h:31
unity::shell::application::MirSurfaceInterface first
The first (index 0) surface in this model.
Definition: MirSurfaceListInterface.h:49
int count
Number of surfaces in this model.
Definition: MirSurfaceListInterface.h:41
Holds a Mir surface. Pretty much an opaque class.
Definition: MirSurfaceInterface.h:41