cutelyst
3.7.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Cutelyst
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 <Context>
9
#include <QString>
10
11
namespace
Cutelyst
{
12
13
class
ComponentFactory
14
{
15
public
:
16
virtual
~
ComponentFactory
() {}
17
22
virtual
Component
*
createComponent
(QObject *parent =
nullptr
) = 0;
23
};
24
25
}
26
27
#define ComponentFactory_iid "org.cutelyst.ComponentFactory"
28
Q_DECLARE_INTERFACE(
Cutelyst::ComponentFactory
, ComponentFactory_iid)
29
30
#endif
// COMPONENTFACTORY_H
Cutelyst::ComponentFactory
Definition:
componentfactory.h:14
Cutelyst::ComponentFactory::createComponent
virtual Component * createComponent(QObject *parent=nullptr)=0
Cutelyst::Component
The Cutelyst Component base class.
Definition:
component.h:26
Cutelyst
The Cutelyst namespace holds all public Cutelyst API.
Definition:
Mainpage.dox:8
Generated by
1.9.1