17 #ifndef UNITY_SHELL_SCOPES_RESULTSMODELINTERFACE_H 18 #define UNITY_SHELL_SCOPES_RESULTSMODELINTERFACE_H 20 #include <unity/SymbolExport.h> 22 #include <QAbstractListModel> 41 Q_PROPERTY(QString categoryId READ categoryId WRITE setCategoryId NOTIFY categoryIdChanged)
46 Q_PROPERTY(
int count READ count NOTIFY countChanged)
78 virtual QString categoryId()
const = 0;
79 virtual int count()
const = 0;
81 virtual void setCategoryId(QString
const&
id) = 0;
82 QHash<int, QByteArray> roleNames()
const override 84 QHash<int, QByteArray> roles;
85 roles[RoleUri] =
"uri";
86 roles[RoleCategoryId] =
"categoryId";
87 roles[RoleDndUri] =
"dndUri";
88 roles[RoleQuickPreviewData] =
"quickPreviewData";
89 roles[RoleResult] =
"result";
90 roles[RoleTitle] =
"title";
91 roles[RoleArt] =
"art";
92 roles[RoleSubtitle] =
"subtitle";
93 roles[RoleMascot] =
"mascot";
94 roles[RoleEmblem] =
"emblem";
95 roles[RoleSummary] =
"summary";
96 roles[RoleAttributes] =
"attributes";
97 roles[RoleBackground] =
"background";
98 roles[RoleOverlayColor] =
"overlayColor";
99 roles[RoleSocialActions] =
"socialActions";
107 void categoryIdChanged();
Data for UI quick previewing. In case of audio should contain uri and duration.
Definition: ResultsModelInterface.h:72
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:57