supla-device
Loading...
Searching...
No Matches
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_OUTPUT_INTERFACE_H_
5#define SRC_SUPLA_CONTROL_OUTPUT_INTERFACE_H_
6
7namespace Supla {
8
9namespace Control {
10
12 public:
13 virtual ~OutputInterface() {}
14 virtual int getOutputValue() const = 0;
15 virtual void setOutputValue(int value) = 0;
16 virtual bool isOnOffOnly() const = 0;
17 virtual bool isControlledInternally() const { return true; }
18};
19
20} // namespace Control
21} // namespace Supla
22
23#endif // SRC_SUPLA_CONTROL_OUTPUT_INTERFACE_H_
Definition output_interface.h:11