supla-device
Loading...
Searching...
No Matches
select_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_SELECT_INPUT_PARAMETER_H_
5#define SRC_SUPLA_NETWORK_HTML_SELECT_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 *name = nullptr;
17 int value = 0;
18 SelectValueMapElement *next = nullptr;
19
21};
22
24 public:
26 SelectInputParameter(const char *paramTag, const char *paramLabel);
27 virtual ~SelectInputParameter();
28 void send(Supla::WebSender* sender) override;
29 bool handleResponse(const char* key, const char* value) override;
30 void registerValue(const char *name, int value);
31 void setTag(const char *tagValue);
32 void setLabel(const char *labelValue);
33 void onProcessingEnd() override;
34
35 void setBaseTypeBitCount(uint8_t value);
36
37 protected:
38 char *tag = nullptr;
39 char *label = nullptr;
40 SelectValueMapElement *firstValue = nullptr;
41 bool configChanged = false;
42 uint8_t baseTypeBitCount = 32;
43};
44
45}; // namespace Html
46}; // namespace Supla
47
48#endif // SRC_SUPLA_NETWORK_HTML_SELECT_INPUT_PARAMETER_H_
Definition html_element.h:22
Definition select_input_parameter.h:23
Definition local_action.h:42
Definition web_sender.h:160
Definition select_input_parameter.h:15