supla-device
Loading...
Searching...
No Matches
container_parameters.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_CONTAINER_PARAMETERS_H_
5#define SRC_SUPLA_NETWORK_HTML_CONTAINER_PARAMETERS_H_
6
7#include <supla/network/html_element.h>
8#include <supla/sensor/container.h>
9
10namespace Supla {
11
12namespace Html {
13
15 public:
16 explicit ContainerParameters(bool allowSensors = false,
17 Supla::Sensor::Container *contaier = nullptr);
18 virtual ~ContainerParameters();
19
20 void send(Supla::WebSender* sender) override;
21 bool handleResponse(const char* key, const char* value) override;
22 void onProcessingEnd() override;
23
24 void setContainerPtr(Supla::Sensor::Container *container);
25
26 protected:
27 int parseValue(const char *value) const;
28 void generateSensorKey(char *key, const char *prefix, int index);
29 Supla::Sensor::Container *container = nullptr;
31 bool muteSet = false;
32 bool configChanged = false;
33 bool allowSensors = false;
34};
35
36}; // namespace Html
37}; // namespace Supla
38
39#endif // SRC_SUPLA_NETWORK_HTML_CONTAINER_PARAMETERS_H_
Definition html_element.h:22
Definition container_parameters.h:14
Definition container.h:43
Definition web_sender.h:160
Definition container.h:23