cutelyst  4.5.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
dispatchtype.cpp
1 /*
2  * SPDX-FileCopyrightText: (C) 2013-2022 Daniel Nicoletti <dantti12@gmail.com>
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 #include "dispatchtype.h"
6 
7 #include "context_p.h"
8 
9 using namespace Cutelyst;
10 
12  : QObject(parent)
13 {
14 }
15 
17 {
18 }
19 
21 {
22  Q_UNUSED(c)
23  Q_UNUSED(action)
24  return nullptr;
25 }
26 
27 QString DispatchType::uriForAction(Action *action, const QStringList &captures) const
28 {
29  Q_UNUSED(action)
30  Q_UNUSED(captures)
31  return QString();
32 }
33 
35 {
36  Q_UNUSED(action)
37  return true;
38 }
39 
41 {
42  return false;
43 }
44 
46 {
47  c->d_ptr->action = action;
48 }
49 
50 #include "moc_dispatchtype.cpp"
This class represents a Cutelyst Action.
Definition: action.h:35
The Cutelyst Context.
Definition: context.h:42
Action * action
Definition: context.h:47
virtual QString uriForAction(Action *action, const QStringList &captures) const =0
DispatchType(QObject *parent=nullptr)
void setupMatchedAction(Context *c, Action *action) const
virtual Action * expandAction(const Context *c, Action *action) const
virtual bool isLowPrecedence() const
virtual bool registerAction(Action *action)
The Cutelyst namespace holds all public Cutelyst API.