17 #ifndef UNITY_SHELL_SCOPES_CATEGORESINTERFACE_H 18 #define UNITY_SHELL_SCOPES_CATEGORESINTERFACE_H 20 #include <unity/SymbolExport.h> 22 #include <QAbstractListModel> 54 RoleRawRendererTemplate,
69 Q_INVOKABLE
virtual bool overrideCategoryJson(QString
const& categoryId, QString
const& json) = 0;
72 QHash<int, QByteArray> roleNames()
const override 74 QHash<int, QByteArray> roles;
75 roles[RoleCategoryId] =
"categoryId";
76 roles[RoleName] =
"name";
77 roles[RoleIcon] =
"icon";
78 roles[RoleRawRendererTemplate] =
"rawRendererTemplate";
79 roles[RoleRenderer] =
"renderer";
80 roles[RoleComponents] =
"components";
81 roles[RoleHeaderLink] =
"headerLink";
82 roles[RoleResults] =
"results";
83 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:50