6#include <ilog/TLoggerCompWrap.h>
9#include <imtbase/IObjectCollection.h>
10#include <imtgql/IGqlContextCreator.h>
17class CGqlContextCreatorComp:
18 public ilog::CLoggerComponentBase,
19 virtual public imtgql::IGqlContextCreator
22 typedef ilog::CLoggerComponentBase BaseClass;
24 I_BEGIN_COMPONENT(CGqlContextCreatorComp);
25 I_REGISTER_INTERFACE(imtgql::IGqlContextCreator);
26 I_ASSIGN(m_userCollectionCompPtr,
"UserCollection",
"User collection",
false,
"UserCollection");
27 I_ASSIGN(m_userSettingsCollectionCompPtr,
"UserSettingsCollection",
"User settings collection",
false,
"UserSettingsCollection");
28 I_ASSIGN(m_gqlContextFactCompPtr,
"GqlContextFactory",
"GraphQL context factory",
true,
"GqlContextFactory");
32 virtual imtgql::IGqlContextUniquePtr CreateGqlContext(
33 const QByteArray& token,
34 const QByteArray& productId,
35 const QByteArray& userId,
36 const imtgql::IGqlContext::Headers& headers,
37 QString& errorMessage)
const override;