7#include <Cutelyst/action.h>
8#include <Cutelyst/context.h>
9#include <Cutelyst/cutelyst_global.h>
10#include <Cutelyst/request.h>
11#include <Cutelyst/response.h>
16#define C_PATH(X, Y) Q_CLASSINFO(STR(X##_Path), STR(Y))
17#define C_NAMESPACE(value) Q_CLASSINFO("Namespace", value)
18#define C_ATTR(X, Y) Q_CLASSINFO(STR(X), STR(Y)) Q_INVOKABLE
20#define CActionFor(str) \
21 ([this]() -> Cutelyst::Action * { \
22 static thread_local Cutelyst::Action *action = Cutelyst::Controller::actionFor(str); \
28class ControllerPrivate;
93 explicit Controller(QObject *parent =
nullptr);
105 [[nodiscard]] QString ns()
const noexcept;
113 Action *actionFor(QStringView name)
const;
119 [[nodiscard]]
ActionList actions()
const noexcept;
124 bool operator==(
const char *className);
154 ControllerPrivate *d_ptr;
This class represents a Cutelyst Action.
The Cutelyst Application.
Cutelyst Controller base class
The Cutelyst namespace holds all public Cutelyst API.
QVector< Action * > ActionList