cutelyst
4.5.1
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
12
namespace
Cutelyst
{
13
14
class
ComponentFactory
15
{
16
public
:
21
virtual
Component
*
createComponent
(
QObject
*parent =
nullptr
) = 0;
22
};
23
24
}
// namespace Cutelyst
25
26
#define ComponentFactory_iid "org.cutelyst.ComponentFactory"
27
Q_DECLARE_INTERFACE(
Cutelyst::ComponentFactory
, ComponentFactory_iid)
28
29
#endif
// COMPONENTFACTORY_H
Cutelyst::ComponentFactory
Definition:
componentfactory.h:15
Cutelyst::ComponentFactory::createComponent
virtual Component * createComponent(QObject *parent=nullptr)=0
Cutelyst::Component
The Cutelyst Component base class.
Definition:
component.h:30
Cutelyst
The Cutelyst namespace holds all public Cutelyst API.
Definition:
group-core-actions.dox:1
QObject
Cutelyst
componentfactory.h
Generated on Tue Nov 26 2024 02:08:15 for cutelyst by
1.9.1