5 #ifndef CUTELYST_COMPONENT_H
6 #define CUTELYST_COMPONENT_H
8 #include <Cutelyst/cutelyst_export.h>
10 #include <QtCore/qobject.h>
18 class ComponentPrivate;
39 BeforeExecute = 2 << 1,
40 AroundExecute = 3 << 1,
41 AfterExecute = 4 << 1,
44 Q_DECLARE_FLAGS(Modifiers, Modifier)
61 [[nodiscard]]
virtual Modifiers modifiers()
const;
67 [[nodiscard]]
QString name() const noexcept;
73 void setName(const
QString &name);
79 [[nodiscard]]
QString reverse() const noexcept;
85 void setReverse(const
QString &reverse);
93 virtual
bool init(
Application *application, const QVariantHash &args);
110 virtual
bool beforeExecute(
Context *c);
121 virtual
bool afterExecute(
Context *c);
126 virtual
bool doExecute(
Context *c);
The Cutelyst application.
The Cutelyst Component base class.
Cutelyst Controller base class.
The Cutelyst namespace holds all public Cutelyst API.