cutelyst  3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
dispatchtypepath.h
1 /*
2  * SPDX-FileCopyrightText: (C) 2013-2022 Daniel Nicoletti <dantti12@gmail.com>
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 #ifndef CUTELYST_DISPATCHTYPEPATH_H
6 #define CUTELYST_DISPATCHTYPEPATH_H
7 
8 #include <Cutelyst/action.h>
9 #include <Cutelyst/cutelyst_global.h>
10 #include <Cutelyst/dispatchtype.h>
11 
12 namespace Cutelyst {
13 
14 class DispatchTypePathPrivate;
15 class CUTELYST_LIBRARY DispatchTypePath final : public DispatchType
16 {
17  Q_OBJECT
18  Q_DECLARE_PRIVATE(DispatchTypePath)
19 public:
23  explicit DispatchTypePath(QObject *parent = nullptr);
24  virtual ~DispatchTypePath() override;
25 
26  virtual QByteArray list() const override;
27 
28  virtual MatchType
29  match(Context *c, const QString &path, const QStringList &args) const override;
30 
31  virtual bool registerAction(Action *action) override;
32 
33  virtual bool inUse() override;
34 
39  virtual QString uriForAction(Action *action, const QStringList &captures) const override;
40 
41 protected:
42  DispatchTypePathPrivate *d_ptr;
43 };
44 
45 } // namespace Cutelyst
46 
47 #endif // DispatchTypePath_H
This class represents a Cutelyst Action.
Definition: action.h:34
The Cutelyst Context.
Definition: context.h:38
The Cutelyst namespace holds all public Cutelyst API.
Definition: Mainpage.dox:7