supla-device
Loading...
Searching...
No Matches
text_cmd_input_parameter.h
1// SPDX-FileCopyrightText: AC SOFTWARE SP. Z O.O.
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#ifndef SRC_SUPLA_NETWORK_HTML_TEXT_CMD_INPUT_PARAMETER_H_
5#define SRC_SUPLA_NETWORK_HTML_TEXT_CMD_INPUT_PARAMETER_H_
6
7#include <supla/network/html_element.h>
8#include <supla/local_action.h>
9#include <stdint.h>
10
11namespace Supla {
12
13namespace Html {
14
16 char *cmd = nullptr;
17 int eventId = 0;
18 RegisteredCmdActionMap *next = nullptr;
19
21};
22
24 public:
25 TextCmdInputParameter(const char *paramTag, const char *paramLabel);
26 virtual ~TextCmdInputParameter();
27 void send(Supla::WebSender* sender) override;
28 bool handleResponse(const char* key, const char* value) override;
29 void registerCmd(const char *cmdStr, int eventId);
30
31 protected:
32 char *tag = nullptr;
33 char *label = nullptr;
34 RegisteredCmdActionMap *firstCmd = nullptr;
35};
36
37}; // namespace Html
38}; // namespace Supla
39
40
41#endif // SRC_SUPLA_NETWORK_HTML_TEXT_CMD_INPUT_PARAMETER_H_
Definition html_element.h:22
Definition text_cmd_input_parameter.h:23
Definition local_action.h:42
Definition web_sender.h:160
Definition text_cmd_input_parameter.h:15