cutelyst 5.1.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-2023 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/Plugins/staticcompressed_export.h>
10
11namespace Cutelyst {
12
13class StaticCompressedPrivate;
14
205class CUTELYST_PLUGIN_STATICCOMPRESSED_EXPORT // clazy:exclude=ctor-missing-parent-argument
206 StaticCompressed : public Plugin
207{
209 Q_DECLARE_PRIVATE(StaticCompressed) // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
210 Q_DISABLE_COPY(StaticCompressed)
211public:
216
225 StaticCompressed(Application *parent, const QVariantMap &defaultConfig);
226
231
238 void setIncludePaths(const QStringList &paths);
239
266 void setDirs(const QStringList &dirs);
267
275 void setServeDirsOnly(bool dirsOnly);
276
283 bool setup(Application *app) override;
284
285private:
286 std::unique_ptr<StaticCompressedPrivate> d_ptr;
287};
288
289} // namespace Cutelyst
290
291#endif // STATICCOMPRESSED_H
The Cutelyst application.
Definition application.h:66
Plugin(Application *parent)
Definition plugin.cpp:12
void setServeDirsOnly(bool dirsOnly)
void setIncludePaths(const QStringList &paths)
void setDirs(const QStringList &dirs)
StaticCompressed(Application *parent)
bool setup(Application *app) override
The Cutelyst namespace holds all public Cutelyst API.
Q_OBJECTQ_OBJECT
QObject * parent() const const