supla-device
Loading...
Searching...
No Matches
button_action_trigger_config.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_BUTTON_ACTION_TRIGGER_CONFIG_H_
5#define SRC_SUPLA_NETWORK_HTML_BUTTON_ACTION_TRIGGER_CONFIG_H_
6
7#include <supla/network/html_element.h>
8
9namespace Supla {
10namespace Html {
11
13 public:
14 explicit ButtonActionTriggerConfig(int channelNumber,
15 int buttonNumber,
16 const char* labelPrefix = nullptr);
18 void send(Supla::WebSender* sender) override;
19 bool handleResponse(const char* key, const char* value) override;
20
21 protected:
22 int channelNumber = 0;
23 int buttonNumber = 0;
24 char *labelPrefix = nullptr;
25};
26
27} // namespace Html
28} // namespace Supla
29
30#endif // SRC_SUPLA_NETWORK_HTML_BUTTON_ACTION_TRIGGER_CONFIG_H_
Definition html_element.h:22
Definition button_action_trigger_config.h:12
Definition web_sender.h:160