cutelyst
3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Cutelyst
Plugins
StaticSimple
staticsimple.h
1
/*
2
* SPDX-FileCopyrightText: (C) 2014-2022 Daniel Nicoletti <dantti12@gmail.com>
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
#ifndef CPSTATICSIMPLE_H
6
#define CPSTATICSIMPLE_H
7
8
#include <Cutelyst/context.h>
9
#include <Cutelyst/cutelyst_global.h>
10
#include <Cutelyst/plugin.h>
11
12
namespace
Cutelyst
{
13
14
class
StaticSimplePrivate;
15
class
CUTELYST_PLUGIN_STATICSIMPLE_EXPORT
StaticSimple
:
public
Plugin
16
{
17
Q_OBJECT
18
Q_DECLARE_PRIVATE(
StaticSimple
)
19
public
:
23
StaticSimple
(
Application
*parent);
24
virtual
~
StaticSimple
()
override
;
25
32
void
setIncludePaths(
const
QStringList
&paths);
33
38
void
setDirs(
const
QStringList
&dirs);
39
43
virtual
bool
setup(
Application
*app)
override
;
44
45
protected
:
46
StaticSimplePrivate *d_ptr;
47
48
private
:
49
void
beforePrepareAction(
Context
*c,
bool
*skipMethod);
50
bool
locateStaticFile(
Context
*c,
const
QString
&relPath);
51
};
52
53
}
// namespace Cutelyst
54
55
#endif // CPSTATICSIMPLE_H
Cutelyst::Context
The Cutelyst Context.
Definition:
context.h:38
Cutelyst::StaticSimple
Definition:
staticsimple.h:15
Cutelyst
The Cutelyst namespace holds all public Cutelyst API.
Definition:
Mainpage.dox:7
QString
QStringList
Cutelyst::Plugin
Definition:
plugin.h:17
Cutelyst::Application
The Cutelyst Application.
Definition:
application.h:42
Generated by
1.8.14