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)
76 virtual QString categoryId()
const = 0;
77 virtual int count()
const = 0;
79 virtual void setCategoryId(QString
const&
id) = 0;
80 QHash<int, QByteArray> roleNames()
const override
82 QHash<int, QByteArray> roles;
83 roles[RoleUri] =
"uri";
84 roles[RoleCategoryId] =
"categoryId";
85 roles[RoleDndUri] =
"dndUri";
86 roles[RoleResult] =
"result";
87 roles[RoleTitle] =
"title";
88 roles[RoleArt] =
"art";
89 roles[RoleSubtitle] =
"subtitle";
90 roles[RoleMascot] =
"mascot";
91 roles[RoleEmblem] =
"emblem";
92 roles[RoleSummary] =
"summary";
93 roles[RoleAttributes] =
"attributes";
94 roles[RoleBackground] =
"background";
102 void categoryIdChanged();
A model of scope results for a particular category.
Definition: ResultsModelInterface.h:34
Roles
The Roles supported by this model.
Definition: ResultsModelInterface.h:59