17#ifndef SRC_SUPLA_CONDITION_H_
18#define SRC_SUPLA_CONDITION_H_
20#include "action_handler.h"
21#include "condition_getter.h"
29 Condition(
double threshold,
bool useAlternativeValue);
38 void activateAction(
int action)
override;
39 void handleAction(
int event,
int action)
override;
40 bool deleteClient()
override;
43 virtual bool checkConditionFor(
double val,
bool isValid =
true);
45 void setThreshold(
double val);
48 virtual bool condition(
double val,
bool isValid =
true) = 0;
51 bool useAlternativeValue =
false;
52 bool alreadyFired =
false;
61 bool useAlternativeValue =
false);
63 bool useAlternativeValue =
false);
65 bool useAlternativeValue =
false);
67 bool useAlternativeValue =
false);
70 bool useAlternativeValue =
false);
73 bool useAlternativeValue =
false);
75 bool useAlternativeValue =
false);
Definition action_handler.h:21
Definition condition_getter.h:27
Definition condition.h:27
Definition element_with_channel_actions.h:42