cutelyst 4.0.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
dispatchtypechained.h
1/*
2 * SPDX-FileCopyrightText: (C) 2015-2023 Daniel Nicoletti <dantti12@gmail.com>
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5#pragma once
6
7#include <Cutelyst/action.h>
8#include <Cutelyst/cutelyst_global.h>
9#include <Cutelyst/dispatchtype.h>
10
11namespace Cutelyst {
12
13class DispatchTypeChainedPrivate;
14class CUTELYST_LIBRARY DispatchTypeChained final : public DispatchType
15{
16 Q_OBJECT
17 Q_DECLARE_PRIVATE(DispatchTypeChained)
18public:
22 explicit DispatchTypeChained(QObject *parent = nullptr);
23 ~DispatchTypeChained() override;
24
25 QByteArray list() const override;
26
27 MatchType match(Context *c, QStringView path, const QStringList &args) const override;
28
29 bool registerAction(Action *action) override;
30
31 QString uriForAction(Action *action, const QStringList &captures) const override;
32
33 Action *expandAction(const Context *c, Action *action) const final;
34
35 bool inUse() override;
36
37private:
38 DispatchTypeChainedPrivate *d_ptr;
39};
40
41} // namespace Cutelyst
This class represents a Cutelyst Action.
Definition: action.h:35
The Cutelyst Context.
Definition: context.h:38
The Cutelyst namespace holds all public Cutelyst API.
Definition: Mainpage.dox:8