supla-device
Loading...
Searching...
No Matches
src
supla
network
html_generator.h
1
/*
2
Copyright (C) AC SOFTWARE SP. Z O.O.
3
4
This program is free software; you can redistribute it and/or
5
modify it under the terms of the GNU General Public License
6
as published by the Free Software Foundation; either version 2
7
of the License, or (at your option) any later version.
8
9
This program 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
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
*/
18
19
#ifndef SRC_SUPLA_NETWORK_HTML_GENERATOR_H_
20
#define SRC_SUPLA_NETWORK_HTML_GENERATOR_H_
21
22
namespace
Supla {
23
24
class
WebSender
;
25
26
class
HtmlGenerator
{
27
public
:
28
virtual
~HtmlGenerator
();
29
30
virtual
void
sendPage(
Supla::WebSender
*,
bool
dataSaved =
false
);
31
virtual
void
sendBetaPage(
Supla::WebSender
*,
bool
dataSaved =
false
);
32
33
virtual
void
sendHeaderBegin(
Supla::WebSender
*);
34
virtual
void
sendHeader(
Supla::WebSender
*);
35
virtual
void
sendHeaderEnd(
Supla::WebSender
*);
36
virtual
void
sendBodyBegin(
Supla::WebSender
*);
37
virtual
void
sendDataSaved(
Supla::WebSender
*);
38
virtual
void
sendLogo(
Supla::WebSender
*);
39
virtual
void
sendDeviceInfo(
Supla::WebSender
*);
40
virtual
void
sendForm(
Supla::WebSender
*);
// form send in standard request
41
virtual
void
sendBetaForm(
Supla::WebSender
*);
// form send in /beta request
42
virtual
void
sendButtons(
Supla::WebSender
*);
43
virtual
void
sendSubmitButton(
Supla::WebSender
*);
44
virtual
void
sendBodyEnd(
Supla::WebSender
*);
45
46
// methods called in sendHeader default implementation
47
virtual
void
sendStyle(
Supla::WebSender
*);
48
virtual
void
sendJavascript(
Supla::WebSender
*);
49
};
50
51
};
// namespace Supla
52
53
#endif
// SRC_SUPLA_NETWORK_HTML_GENERATOR_H_
Supla::HtmlGenerator
Definition
html_generator.h:26
Supla::WebSender
Definition
web_sender.h:26
Generated by
1.13.2