Cutelyst  3.5.0
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 
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
The Cutelyst Component base class.
Definition: component.h:25
The Cutelyst namespace holds all public Cutelyst API.
Definition: Mainpage.dox:7
virtual Component * createComponent(QObject *parent=nullptr)=0