17 #ifndef UNITY_SHELL_SCOPES_CATEGORESINTERFACE_H 18 #define UNITY_SHELL_SCOPES_CATEGORESINTERFACE_H 20 #include <unity/SymbolExport.h> 22 #include <QAbstractListModel> 56 RoleRawRendererTemplate,
70 Q_INVOKABLE
virtual bool overrideCategoryJson(QString
const& categoryId, QString
const& json) = 0;
73 QHash<int, QByteArray> roleNames()
const override 75 QHash<int, QByteArray> roles;
76 roles[RoleCategoryId] =
"categoryId";
77 roles[RoleName] =
"name";
78 roles[RoleIcon] =
"icon";
79 roles[RoleRawRendererTemplate] =
"rawRendererTemplate";
80 roles[RoleRenderer] =
"renderer";
81 roles[RoleComponents] =
"components";
82 roles[RoleHeaderLink] =
"headerLink";
83 roles[RoleResults] =
"results";
84 roles[RoleCount] =
"count";
Top-level namespace for all things Unity-related.
Definition: Version.h:37
A list of categories for a particular search.
Definition: CategoriesInterface.h:37
Roles
The roles supported by this model.
Definition: CategoriesInterface.h:52