Webdar
1.0.0
Web user interface to libdar
Webdar
webdar
src
html_popup.hpp
1
/*********************************************************************/
2
// webdar - a web server and interface program to libdar
3
// Copyright (C) 2013-2025 Denis Corbin
4
//
5
// This file is part of Webdar
6
//
7
// Webdar is free software: you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License as published by
9
// the Free Software Foundation, either version 3 of the License, or
10
// (at your option) any later version.
11
//
12
// Webdar is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
16
//
17
// You should have received a copy of the GNU General Public License
18
// along with Webdar. If not, see <http://www.gnu.org/licenses/>
19
//
20
//----
21
// to contact the author: dar.linux@free.fr
22
/*********************************************************************/
23
24
#ifndef HTML_POPUP_HPP
25
#define HTML_POPUP_HPP
26
27
// C system header files
28
#include "my_config.h"
29
extern
"C"
30
{
31
32
}
33
34
// C++ system header files
35
36
37
// webdar headers
38
#include "body_builder.hpp"
39
#include "html_div.hpp"
40
42
48
49
class
html_popup
:
public
html_div
50
{
51
public
:
52
html_popup
(
unsigned
int
width_pct,
unsigned
int
height_pct);
53
html_popup
(
const
html_popup
& ref) =
delete
;
54
html_popup
(
html_popup
&& ref)
noexcept
=
delete
;
55
html_popup
& operator = (
const
html_popup
& ref) =
delete
;
56
html_popup
& operator = (
html_popup
&& ref)
noexcept
=
delete
;
57
~html_popup
() =
default
;
58
59
protected
:
61
virtual
std::string
inherited_get_body_part
(
const
chemin
& path,
62
const
request
& req)
override
;
63
65
virtual
void
new_css_library_available
()
override
;
66
67
private
:
68
static
const
std::string outerclassname;
69
std::string innerclassname;
70
71
unsigned
int
width;
72
unsigned
int
height;
73
bool
self_css;
74
79
html_div
outerbox;
80
81
};
82
83
#endif
chemin
class chemin definition
Definition:
chemin.hpp:51
html_div
class html_div is the implementation of
Definition:
html_div.hpp:46
html_popup
class html_popup is the implementation of
Definition:
html_popup.hpp:50
html_popup::inherited_get_body_part
virtual std::string inherited_get_body_part(const chemin &path, const request &req) override
inherited from body_builder
Definition:
html_popup.cpp:59
html_popup::new_css_library_available
virtual void new_css_library_available() override
inherited from body_builder
Definition:
html_popup.cpp:67
request
class holding fields of an HTTP request (method, URI, header, cookies, and so on)
Definition:
request.hpp:45
Generated by
1.9.4