cutelyst  4.3.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/cutelyst_global.h>
10 
11 namespace Cutelyst {
12 
13 class StaticCompressedPrivate;
14 
176 class CUTELYST_PLUGIN_STATICCOMPRESSED_EXPORT // clazy:exclude=ctor-missing-parent-argument
177  StaticCompressed : public Plugin
178 {
179  Q_OBJECT
180  Q_DECLARE_PRIVATE(StaticCompressed) // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
181  Q_DISABLE_COPY(StaticCompressed)
182 public:
186  explicit StaticCompressed(Application *parent);
187 
196  StaticCompressed(Application *parent, const QVariantMap &defaultConfig);
197 
201  ~StaticCompressed() override;
202 
209  void setIncludePaths(const QStringList &paths);
210 
237  void setDirs(const QStringList &dirs);
238 
246  void setServeDirsOnly(bool dirsOnly);
247 
254  bool setup(Application *app) override;
255 
256 private:
257  std::unique_ptr<StaticCompressedPrivate> d_ptr;
258 };
259 
260 } // namespace Cutelyst
261 
262 #endif // STATICCOMPRESSED_H
The Cutelyst namespace holds all public Cutelyst API.