cutelyst  3.7.0
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/cutelyst_global.h>
9 #include <Cutelyst/action.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 match(Context *c, const QString &path, const QStringList &args) const override;
29 
30  virtual bool registerAction(Action *action) override;
31 
32  virtual bool inUse() override;
33 
38  virtual QString uriForAction(Action *action, const QStringList &captures) const override;
39 
40 protected:
41  DispatchTypePathPrivate *d_ptr;
42 };
43 
44 }
45 
46 #endif // DispatchTypePath_H
This class represents a Cutelyst Action.
Definition: action.h:35
The Cutelyst Context.
Definition: context.h:39
The Cutelyst namespace holds all public Cutelyst API.
Definition: Mainpage.dox:8