8#include <Cutelyst/cutelyst_global.h>
10#include <QtCore/qobject.h>
11#include <QtCore/qstringlist.h>
23 enum MatchType { NoMatch = 0, PartialMatch, ExactMatch };
80 friend class Dispatcher;
81 friend class Application;
This class represents a Cutelyst Action.
virtual QString uriForAction(Action *action, const QStringList &captures) const =0
DispatchType(QObject *parent=nullptr)
void setupMatchedAction(Context *c, Action *action) const
virtual MatchType match(Context *c, const QString &path, const QStringList &args) const =0
virtual QByteArray list() const =0
list the registered actions To be implemented by subclasses
virtual Action * expandAction(const Context *c, Action *action) const
virtual bool isLowPrecedence() const
virtual bool registerAction(Action *action)
registerAction
The Cutelyst namespace holds all public Cutelyst API.