18 #ifndef CUTELYST_COMPONENT_H 19 #define CUTELYST_COMPONENT_H 21 #include <QtCore/qobject.h> 23 #include <Cutelyst/cutelyst_global.h> 31 class ComponentPrivate;
48 BeforeExecute = 2 << 1,
49 AroundExecute = 3 << 1,
50 AfterExecute = 4 << 1,
53 Q_DECLARE_FLAGS(Modifiers, Modifier)
66 virtual Modifiers modifiers()
const;
76 void setName(
const QString &name);
86 void setReverse(
const QString &reverse);
94 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);
143 ComponentPrivate *d_ptr;
148 #endif // CUTELYST_COMPONENT_H The Cutelyst Component base class.
Cutelyst Controller base class
The Cutelyst namespace holds all public Cutelyst API.
The Cutelyst Application.