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)
79 virtual QString categoryId()
const = 0;
80 virtual int count()
const = 0;
82 virtual void setCategoryId(QString
const&
id) = 0;
83 QHash<int, QByteArray> roleNames()
const override 85 QHash<int, QByteArray> roles;
86 roles[RoleUri] =
"uri";
87 roles[RoleCategoryId] =
"categoryId";
88 roles[RoleDndUri] =
"dndUri";
89 roles[RoleQuickPreviewData] =
"quickPreviewData";
90 roles[RoleResult] =
"result";
91 roles[RoleTitle] =
"title";
92 roles[RoleArt] =
"art";
93 roles[RoleSubtitle] =
"subtitle";
94 roles[RoleMascot] =
"mascot";
95 roles[RoleEmblem] =
"emblem";
96 roles[RoleSummary] =
"summary";
97 roles[RoleAttributes] =
"attributes";
98 roles[RoleBackground] =
"background";
99 roles[RoleOverlayColor] =
"overlayColor";
100 roles[RoleSocialActions] =
"socialActions";
108 void categoryIdChanged();
Data for UI quick previewing. In case of audio should contain uri and duration.
Definition: ResultsModelInterface.h:74
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