Cutelyst
2.13.0
Cutelyst
Plugins
StaticSimple
staticsimple.h
1
/*
2
* Copyright (C) 2014-2018 Daniel Nicoletti <dantti12@gmail.com>
3
*
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
8
*
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
*/
18
#ifndef CPSTATICSIMPLE_H
19
#define CPSTATICSIMPLE_H
20
21
#include <Cutelyst/cutelyst_global.h>
22
#include <Cutelyst/plugin.h>
23
#include <Cutelyst/context.h>
24
25
namespace
Cutelyst
{
26
27
class
StaticSimplePrivate;
28
class
CUTELYST_PLUGIN_STATICSIMPLE_EXPORT
StaticSimple
:
public
Plugin
29
{
30
Q_OBJECT
31
Q_DECLARE_PRIVATE(
StaticSimple
)
32
public
:
36
StaticSimple
(
Application
*parent);
37
virtual
~
StaticSimple
()
override
;
38
45
void
setIncludePaths(
const
QStringList &paths);
46
51
void
setDirs(
const
QStringList &dirs);
52
56
virtual
bool
setup(
Application
*app)
override
;
57
58
protected
:
59
StaticSimplePrivate *d_ptr;
60
61
private
:
62
void
beforePrepareAction(
Context
*c,
bool
*skipMethod);
63
bool
locateStaticFile(
Context
*c,
const
QString &relPath);
64
};
65
66
}
67
68
#endif // CPSTATICSIMPLE_H
Cutelyst::Plugin
Definition:
plugin.h:30
Cutelyst::Application
The Cutelyst Application.
Definition:
application.h:55
Cutelyst::StaticSimple
Definition:
staticsimple.h:28
Cutelyst::Context
The Cutelyst Context.
Definition:
context.h:50
Cutelyst
The Cutelyst namespace holds all public Cutelyst API.
Definition:
Mainpage.dox:7
Generated on Fri Sep 11 2020 14:33:05 for Cutelyst by
1.8.17