supla-device
Loading...
Searching...
No Matches
roller_shutter_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_ROLLER_SHUTTER_PARAMETERS_H_
5#define SRC_SUPLA_NETWORK_HTML_ROLLER_SHUTTER_PARAMETERS_H_
6
7#include <stdint.h>
8
9#include <supla-common/proto.h>
10#include <supla/network/html_element.h>
11
12namespace Supla {
13
14namespace Control {
15class RollerShutter;
16}
17
18namespace Html {
19
21 public:
23 Supla::Control::RollerShutter* rollerShutter = nullptr);
25 void send(Supla::WebSender* sender) override;
26 bool handleResponse(const char* key, const char* value) override;
27 void onProcessingEnd() override;
28
29 void setRsPtr(Supla::Control::RollerShutter *rs);
30 void setShowChannelFunction(bool show);
31 void setRenderContainer(bool render);
32 void setShowOnlyForRollerFunction(bool showOnly);
33 void setDynamicVisibilityFromChannelFunction(bool enabled);
34
35 protected:
37 bool showChannelFunction = true;
38 bool renderContainer = true;
39 bool showOnlyForRollerFunction = false;
40 bool dynamicVisibilityFromChannelFunction = false;
41
42 bool pendingFacadeBlindTiming = false;
43 bool pendingFacadeBlindTimingInvalid = false;
44 uint32_t pendingOpeningTimeMs = 0;
45 uint32_t pendingClosingTimeMs = 0;
46 uint32_t pendingTiltingTimeMs = 0;
47 uint32_t pendingTiltControlType = SUPLA_TILT_CONTROL_TYPE_UNKNOWN;
48};
49
50}; // namespace Html
51}; // namespace Supla
52
53
54
55#endif // SRC_SUPLA_NETWORK_HTML_ROLLER_SHUTTER_PARAMETERS_H_
Definition roller_shutter.h:23
Definition html_element.h:22
Definition roller_shutter_parameters.h:20
Definition web_sender.h:160