cutelyst 4.3.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
componentfactory.h
1/*
2 * SPDX-FileCopyrightText: (C) 2015-2022 Daniel Nicoletti <dantti12@gmail.com>
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5#ifndef COMPONENTFACTORY_H
6#define COMPONENTFACTORY_H
7
8#include <Cutelyst/Context>
9
10#include <QString>
11
12namespace Cutelyst {
13
15{
16public:
21 virtual Component *createComponent(QObject *parent = nullptr) = 0;
22};
23
24} // namespace Cutelyst
25
26#define ComponentFactory_iid "org.cutelyst.ComponentFactory"
27Q_DECLARE_INTERFACE(Cutelyst::ComponentFactory, ComponentFactory_iid)
28
29#endif // COMPONENTFACTORY_H
virtual Component * createComponent(QObject *parent=nullptr)=0
The Cutelyst Component base class.
Definition component.h:30
The Cutelyst namespace holds all public Cutelyst API.