cutelyst  4.5.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
renderview.h
1 /*
2  * SPDX-FileCopyrightText: (C) 2014-2022 Daniel Nicoletti <dantti12@gmail.com>
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 #ifndef RENDERVIEW_H
6 #define RENDERVIEW_H
7 
8 #include <Cutelyst/action.h>
9 #include <Cutelyst/componentfactory.h>
10 
11 namespace Cutelyst {
12 
13 class RenderViewPrivate;
14 class RenderView final : public Action
15 {
16  Q_OBJECT
17  Q_DECLARE_PRIVATE(RenderView)
18 public:
22  explicit RenderView(QObject *parent = nullptr);
23 
29  bool init(Application *application, const QVariantHash &args) override;
30 
31 protected:
44  bool doExecute(Cutelyst::Context *c) override;
45 };
46 
48  : public QObject
49  , public ComponentFactory
50 {
51  Q_OBJECT
52  Q_PLUGIN_METADATA(IID "org.cutelyst.ComponentFactory" FILE "metadata.json")
54 public:
56 };
57 
58 } // namespace Cutelyst
59 
60 #endif // RENDERVIEW_H
This class represents a Cutelyst Action.
Definition: action.h:35
The Cutelyst application.
Definition: application.h:66
The Cutelyst Component base class.
Definition: component.h:30
The Cutelyst Context.
Definition: context.h:42
Component * createComponent(QObject *parent) override
Definition: renderview.h:55
Sensible default end action that forwards to a View.
Definition: renderview.h:15
bool doExecute(Cutelyst::Context *c) override
Definition: renderview.cpp:74
RenderView(QObject *parent=nullptr)
Definition: renderview.cpp:58
bool init(Application *application, const QVariantHash &args) override
Definition: renderview.cpp:64
The Cutelyst namespace holds all public Cutelyst API.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
QObject * parent() const const