cutelyst 5.0.0
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
11namespace Cutelyst {
12
13class RenderViewPrivate;
14class RenderView final : public Action
15{
17 Q_DECLARE_PRIVATE(RenderView)
18public:
22 explicit RenderView(QObject *parent = nullptr);
23
29 bool init(Application *application, const QVariantHash &args) override;
30
31protected:
44 bool doExecute(Cutelyst::Context *c) override;
45};
46
48 : public QObject
49 , public ComponentFactory
50{
52 Q_PLUGIN_METADATA(IID "org.cutelyst.ComponentFactory" FILE "metadata.json")
54public:
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
bool init(Application *application, const QVariantHash &args) override
The Cutelyst namespace holds all public Cutelyst API.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
QObject * parent() const const