ImagingTools Core SDK
CGqlSearchControllerComp.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// ImtCore includes
6#include <imtbase/ISearchController.h>
7#include <imtservergql/CGqlRequestHandlerCompBase.h>
8#include <GeneratedFiles/imtbasesdl/SDL/1.0/CPP/Search.h>
9
10
11namespace imtservergql
12{
13
14
15class CGqlSearchControllerComp: public sdl::imtbase::Search::CGraphQlHandlerCompBase
16{
17public:
18 typedef imtservergql::CGqlRequestHandlerCompBase BaseClass;
19
20 I_BEGIN_COMPONENT(CGqlSearchControllerComp);
21 I_ASSIGN_MULTI_0(m_searchControllersCompPtr, "SearchControllers", "Search controllers", false);
22 I_END_COMPONENT;
23
24protected:
25 // reimplemented (sdl::imtbase::Search::CGraphQlHandlerCompBase)
26 virtual sdl::imtbase::Search::CSearchResults OnSearch(
27 const sdl::imtbase::Search::CSearchGqlRequest& searchRequest,
28 const ::imtgql::CGqlRequest& gqlRequest,
29 QString& errorMessage) const override;
30
31protected:
32 I_MULTIREF(imtbase::ISearchController, m_searchControllersCompPtr);
33};
34
35
36} // namespace imtservergql
37
38