supla-device
Loading...
Searching...
No Matches
remote_output_interface.h
1// SPDX-FileCopyrightText: AC SOFTWARE SP. Z O.O.
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#ifndef SRC_SUPLA_CONTROL_REMOTE_OUTPUT_INTERFACE_H_
5#define SRC_SUPLA_CONTROL_REMOTE_OUTPUT_INTERFACE_H_
6
7#include <supla/control/output_interface.h>
8
9namespace Supla {
10namespace Control {
11
20 public:
27 explicit RemoteOutputInterface(bool onOffOnly);
28 ~RemoteOutputInterface() override;
29
36 void setOutputValueFromRemote(int value);
37
43 int getOutputValue() const override;
44
51 void setOutputValue(int value) override;
52
58 bool isOnOffOnly() const override;
59
65 bool isControlledInternally() const override;
66
67 private:
68 int outputValue = 0;
69 bool onOffOnly = false;
70};
71
72} // namespace Control
73} // namespace Supla
74
75#endif // SRC_SUPLA_CONTROL_REMOTE_OUTPUT_INTERFACE_H_
Definition output_interface.h:11
RemoteOutputInterface class is used as an interface for remote HVAC devices over which we don't have ...
Definition remote_output_interface.h:19
void setOutputValue(int value) override
Override base class method in order to disable setting output value by HvacBase.
Definition remote_output_interface.cpp:30
int getOutputValue() const override
Returns current output value.
Definition remote_output_interface.cpp:26
bool isControlledInternally() const override
Returns false - output is not controlled internally.
Definition remote_output_interface.cpp:22
bool isOnOffOnly() const override
Returns if output is on/off only or 0-100%.
Definition remote_output_interface.cpp:35
RemoteOutputInterface(bool onOffOnly)
Contructor.
Definition remote_output_interface.cpp:8
void setOutputValueFromRemote(int value)
Set output value from a remote device.
Definition remote_output_interface.cpp:15