7#include <Cutelyst/action.h>
8#include <Cutelyst/cutelyst_global.h>
10#include <QtCore/qhash.h>
11#include <QtCore/qobject.h>
12#include <QtCore/qstringlist.h>
19class DispatcherPrivate;
39 [[nodiscard]]
Action *getAction(QStringView name, QStringView nameSpace = {})
const;
44 [[nodiscard]]
Action *getActionByPath(QStringView path)
const;
50 [[nodiscard]]
ActionList getActions(QStringView name, QStringView nameSpace)
const;
55 [[nodiscard]]
Controller *controller(QStringView name)
const;
60 [[nodiscard]] QList<Controller *> controllers()
const;
70 [[nodiscard]] QString uriForAction(
Action *action,
const QStringList &captures)
const;
83 [[nodiscard]] QVector<DispatchType *> dispatchers()
const;
89 void setupActions(
const QVector<Controller *> &controllers,
90 const QVector<DispatchType *> &dispatchers,
107 bool forward(
Context *c, QStringView opname);
112 void prepareAction(
Context *c);
118 DispatcherPrivate *d_ptr;
This class represents a Cutelyst Action.
The Cutelyst Application.
The Cutelyst Component base class.
Cutelyst Controller base class
The Cutelyst namespace holds all public Cutelyst API.
QVector< Action * > ActionList