21 #ifndef _ENABLE_QT_EXPERIMENTAL_
22 #error You should define _ENABLE_QT_EXPERIMENTAL_ in order to use this experimental header file.
25 #include <unity/util/NonCopyable.h>
26 #include <unity/util/DefinesPtrs.h>
28 #include <unity/scopes/Category.h>
30 #include <QtCore/QString>
31 #pragma GCC diagnostic push
32 #pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
33 #include <QtCore/QVariantMap>
34 #pragma GCC diagnostic pop
36 class QCategorisedResult_test;
49 class QSearchReplyImpl;
51 class QCategorisedResultImpl;
80 QString
title()
const;
92 CannedQuery::SCPtr
query()
const;
101 QVariantMap serialize()
const;
105 QCategory(unity::scopes::Category::SCPtr category);
106 QCategory(internal::QCategoryImpl* impl);
107 friend class unity::scopes::qt::internal::QSearchReplyImpl;
109 std::unique_ptr<internal::QCategoryImpl> p;
110 friend class internal::QCategoryImpl;
111 friend class internal::QCategorisedResultImpl;
CategoryRenderer const & renderer_template() const
Get renderer template of this Category.
A set of related results returned by a scope and displayed within a single pane in the Unity dash...
Definition: QCategory.h:60
A category renderer template in JSON format.
Definition: CategoryRenderer.h:83
QString title() const
Get title of this Category.
Top-level namespace for all things Unity-related.
Definition: Version.h:49
Definition: ActionMetadata.h:31
QString icon() const
Get icon of this Category.
QString id() const
Get identifier of this Category.
CannedQuery::SCPtr query() const
Query to perform when this category is expanded.