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;
80 Q_INVOKABLE
virtual void addSpecialCategory(QString
const& categoryId, QString
const& name, QString
const& icon, QString
const& rawTemplate, QObject* countObject) = 0;
83 QHash<int, QByteArray> roleNames()
const override
85 QHash<int, QByteArray> roles;
86 roles[RoleCategoryId] =
"categoryId";
87 roles[RoleName] =
"name";
88 roles[RoleIcon] =
"icon";
89 roles[RoleRawRendererTemplate] =
"rawRendererTemplate";
90 roles[RoleRenderer] =
"renderer";
91 roles[RoleComponents] =
"components";
92 roles[RoleHeaderLink] =
"headerLink";
93 roles[RoleResults] =
"results";
94 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