cutelyst 3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
staticsimple.h
1/*
2 * SPDX-FileCopyrightText: (C) 2014-2022 Daniel Nicoletti <dantti12@gmail.com>
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5#ifndef CPSTATICSIMPLE_H
6#define CPSTATICSIMPLE_H
7
8#include <Cutelyst/context.h>
9#include <Cutelyst/cutelyst_global.h>
10#include <Cutelyst/plugin.h>
11
12namespace Cutelyst {
13
14class StaticSimplePrivate;
15class CUTELYST_PLUGIN_STATICSIMPLE_EXPORT StaticSimple : public Plugin
16{
18 Q_DECLARE_PRIVATE(StaticSimple)
19public:
24 virtual ~StaticSimple() override;
25
32 void setIncludePaths(const QStringList &paths);
33
38 void setDirs(const QStringList &dirs);
39
43 virtual bool setup(Application *app) override;
44
45protected:
46 StaticSimplePrivate *d_ptr;
47
48private:
49 void beforePrepareAction(Context *c, bool *skipMethod);
50 bool locateStaticFile(Context *c, const QString &relPath);
51};
52
53} // namespace Cutelyst
54
55#endif // CPSTATICSIMPLE_H
The Cutelyst Application.
Definition application.h:43
The Cutelyst Context.
Definition context.h:39
Plugin(Application *parent)
Definition plugin.cpp:12
void setDirs(const QStringList &dirs)
virtual bool setup(Application *app) override
StaticSimple(Application *parent)
void setIncludePaths(const QStringList &paths)
The Cutelyst namespace holds all public Cutelyst API.
Definition Mainpage.dox:8
Q_OBJECTQ_OBJECT
QObject * parent() const const