supla-device
Loading...
Searching...
No Matches
src
supla
control
weekly_schedule_cache_runtime.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_WEEKLY_SCHEDULE_CACHE_RUNTIME_H_
5
#define SRC_SUPLA_CONTROL_WEEKLY_SCHEDULE_CACHE_RUNTIME_H_
6
7
#include <stdint.h>
8
9
namespace
Supla {
10
namespace
Control {
11
12
class
WeeklyScheduleCacheRuntime
{
13
public
:
14
void
reset();
15
void
touch(
bool
active, uint32_t now);
16
bool
process(
bool
active, uint32_t now);
17
18
private
:
19
bool
loaded_ =
false
;
20
bool
active_ =
false
;
21
uint32_t inactiveSinceMs_ = 0;
22
};
23
24
}
// namespace Control
25
}
// namespace Supla
26
27
#endif
// SRC_SUPLA_CONTROL_WEEKLY_SCHEDULE_CACHE_RUNTIME_H_
Supla::Control::WeeklyScheduleCacheRuntime
Definition
weekly_schedule_cache_runtime.h:12
Generated by
1.12.0