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/DefinesPtrs.h> 27 #pragma GCC diagnostic push 28 #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 29 #include <QtCore/QVariantMap> 30 #pragma GCC diagnostic pop 31 #include <QtCore/QString> 49 class QDepartmentImpl;
50 class QSearchReplyImpl;
56 typedef QList<std::shared_ptr<QDepartment const>> QDepartmentList;
77 static QDepartment::UPtr create(
QCannedQuery const& query, QString
const& label);
90 static QDepartment::UPtr create(QString
const& department_id,
QCannedQuery const& query, QString
const& label);
110 void set_subdepartments(QDepartmentList
const& departments);
116 void add_subdepartment(QDepartment::SCPtr
const& department);
126 void set_alternate_label(QString
const& label);
140 void set_has_subdepartments(
bool subdepartments =
true);
152 QString label()
const;
164 QString alternate_label()
const;
176 QDepartmentList subdepartments()
const;
182 bool has_subdepartments()
const;
185 QVariantMap serialize()
const;
191 std::unique_ptr<internal::QDepartmentImpl> p;
192 friend class internal::QDepartmentImpl;
193 friend class internal::QSearchReplyImpl;
A department with optional sub-departments.
Definition: QDepartment.h:61
Definition: HttpAsyncReader.h:40
Parameters of a search query.
Definition: QCannedQuery.h:58