17 #ifndef UNITY_SHELL_SCOPES_RESULTSMODELINTERFACE_H
18 #define UNITY_SHELL_SCOPES_RESULTSMODELINTERFACE_H
20 #include <unity/SymbolExport.h>
22 #include <QAbstractListModel>
43 Q_PROPERTY(QString categoryId READ categoryId WRITE setCategoryId NOTIFY categoryIdChanged)
48 Q_PROPERTY(
int count READ count NOTIFY countChanged)
77 virtual QString categoryId()
const = 0;
78 virtual int count()
const = 0;
80 virtual void setCategoryId(QString
const&
id) = 0;
81 QHash<int, QByteArray> roleNames()
const override
83 QHash<int, QByteArray> roles;
84 roles[RoleUri] =
"uri";
85 roles[RoleCategoryId] =
"categoryId";
86 roles[RoleDndUri] =
"dndUri";
87 roles[RoleResult] =
"result";
88 roles[RoleTitle] =
"title";
89 roles[RoleArt] =
"art";
90 roles[RoleSubtitle] =
"subtitle";
91 roles[RoleMascot] =
"mascot";
92 roles[RoleEmblem] =
"emblem";
93 roles[RoleSummary] =
"summary";
94 roles[RoleAttributes] =
"attributes";
95 roles[RoleBackground] =
"background";
96 roles[RoleOverlayColor] =
"overlayColor";
104 void categoryIdChanged();
A model of scope results for a particular category.
Definition: ResultsModelInterface.h:34
Top-level namespace for all things Unity-related.
Definition: Version.h:37
Roles
The Roles supported by this model.
Definition: ResultsModelInterface.h:59