5#include "application.h"
6#include "componentfactory.h"
8#include "renderview_p.h"
12#include <QtCore/QLoggingCategory>
14Q_LOGGING_CATEGORY(CUTELYST_RENDERVIEW,
"cutelyst.renderview", QtWarningMsg)
51 :
Action(new RenderViewPrivate, parent)
53 setObjectName(QString::fromLatin1(metaObject()->
className()) + u
"->execute");
87 quint16 status = res->
status();
88 if (status == 204 || (status >= 300 && status < 400)) {
101 qCCritical(CUTELYST_RENDERVIEW) <<
"Could not find a view to render.";
106#include "moc_renderview.cpp"
This class represents a Cutelyst Action.
bool doExecute(Context *c) override
QString className() const noexcept
ParamsMultiMap attributes() const noexcept
The Cutelyst Application.
View * view(QStringView name={}) const
virtual bool init(Application *application, const QVariantHash &args)
bool forward(Component *component)
Response * res() const noexcept
View * customView() const noexcept
Sensible default end action.
bool doExecute(Cutelyst::Context *c) override
RenderView(QObject *parent=nullptr)
bool init(Application *application, const QVariantHash &args) override
bool isHead() const noexcept
void setContentType(const QByteArray &type)
bool hasBody() const noexcept
void setStatus(quint16 status) noexcept
quint16 status() const noexcept
QByteArray contentType() const
Cutelyst View abstract view component
The Cutelyst namespace holds all public Cutelyst API.
QMultiMap< QString, QString > ParamsMultiMap