cutelyst 4.0.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
staticcompressed.h
1/*
2 * SPDX-FileCopyrightText: (C) 2017-2022 Matthias Fehring <mf@huessenbergnetz.de>
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5#ifndef STATICCOMPRESSED_H
6#define STATICCOMPRESSED_H
7
8#include <Cutelyst/Plugin>
9#include <Cutelyst/cutelyst_global.h>
10
11namespace Cutelyst {
12
13class StaticCompressedPrivate;
14
132class CUTELYST_PLUGIN_STATICCOMPRESSED_EXPORT
133 StaticCompressed // clazy:exclude=ctor-missing-parent-argument
134 : public Plugin
135{
136 Q_OBJECT
137 Q_DECLARE_PRIVATE(StaticCompressed) // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
138 Q_DISABLE_COPY(StaticCompressed)
139public:
143 explicit StaticCompressed(Application *parent);
144
149
156 void setIncludePaths(const QStringList &paths);
157
162 void setDirs(const QStringList &dirs);
163
170 bool setup(Application *app) override;
171
172private:
173 std::unique_ptr<StaticCompressedPrivate> d_ptr;
174};
175
176} // namespace Cutelyst
177
178#endif // STATICCOMPRESSED_H
The Cutelyst Application.
Definition: application.h:43
Deliver static files compressed on the fly or precompressed.
The Cutelyst namespace holds all public Cutelyst API.
Definition: Mainpage.dox:8