cutelyst 3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
actionchain.h
1/*
2 * SPDX-FileCopyrightText: (C) 2015-2022 Daniel Nicoletti <dantti12@gmail.com>
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5#ifndef ACTIONCHAIN_H
6#define ACTIONCHAIN_H
7
8#include <Cutelyst/action.h>
9#include <Cutelyst/cutelyst_global.h>
10
11#include <QtCore/qobject.h>
12
13namespace Cutelyst {
14
15class ActionChainPrivate;
23class CUTELYST_LIBRARY ActionChain : public Action
24{
26 Q_DECLARE_PRIVATE(ActionChain)
27public:
31 explicit ActionChain(const ActionList &chain, QObject *parent = nullptr);
32 virtual ~ActionChain() override = default;
33
38 ActionList chain() const noexcept;
39
43 virtual qint8 numberOfCaptures() const noexcept override;
44
45protected:
46 virtual bool doExecute(Context *c) override;
47};
48
49} // namespace Cutelyst
50
51#endif // ACTIONCHAIN_H
ActionChain(const ActionList &chain, QObject *parent=nullptr)
virtual qint8 numberOfCaptures() const noexcept override
ActionList chain() const noexcept
virtual bool doExecute(Context *c) override
Action(QObject *parent=nullptr)
Definition action.cpp:12
The Cutelyst Context.
Definition context.h:39
The Cutelyst namespace holds all public Cutelyst API.
Definition Mainpage.dox:8
QVector< Action * > ActionList
Definition action.h:154
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const