cutelyst  3.7.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/cutelyst_global.h>
9 #include <Cutelyst/Plugin>
10 
11 namespace Cutelyst {
12 
13 class StaticCompressedPrivate;
14 
125 class CUTELYST_PLUGIN_STATICCOMPRESSED_EXPORT StaticCompressed : public Plugin
126 {
127  Q_OBJECT
128  Q_DECLARE_PRIVATE(StaticCompressed)
129 public:
133  explicit StaticCompressed(Application *parent);
134 
138  virtual ~StaticCompressed() override;
139 
146  void setIncludePaths(const QStringList &paths);
147 
152  void setDirs(const QStringList &dirs);
153 
160  virtual bool setup(Application *app) override;
161 
162 protected:
163  QScopedPointer<StaticCompressedPrivate> d_ptr;
164 };
165 
166 }
167 
168 #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