|
|
virtual void | syncWeeklyScheduleMode (uint8_t mode)=0 |
| |
|
virtual void | scheduleWeeklyScheduleStateSave ()=0 |
| |
|
virtual bool | applyWeeklyScheduleMode (uint8_t mode, bool programChanged) |
| |
| void | onNativeScheduleLoaded () override |
| |
| void | onNativeScheduleLoadFailed (bool alt) override |
| |
| void | onNativeScheduleApplied (bool alt, bool local, bool changed) override |
| |
| void | onNativeScheduleSaved (bool alt, bool notify) override |
| |
| void | onNativeSchedulePurged () override |
| |
| bool | applyResolvedWeeklyScheduleProgram (const TWeeklyScheduleProgram &program, int programId, bool programChanged) override |
| |
|
WeeklyScheduleClockState | getClockState () const |
| |
|
WeeklyScheduleClockState | getClockState (bool startupDelay) const |
| |
|
WeeklyScheduleTimeSnapshot | getWeeklyScheduleTimeSnapshot (bool startupDelay) const |
| |
|
bool | processCurrentProgram (bool startupDelay) |
| |
|
bool | updateCurrentProgramId (int programId) |
| |
|
void | resetCurrentProgramId () |
| |
|
void | setWeeklyScheduleProgramSource (WeeklyScheduleProgramSource *source) |
| |
|
virtual void | onWeeklyScheduleClockState (WeeklyScheduleClockState state) |
| |
|
virtual bool | shouldUseAltWeeklySchedule () const |
| |
|
virtual bool | requiresReadyClock () const |
| |
|
bool | resolveProgramTiming (const WeeklyScheduleTimeSnapshot &time, int programId, int32_t *occurrence, uint32_t *elapsedSeconds) |
| |
|
virtual bool | applyProgramAt (const WeeklyScheduleTimeSnapshot &time, const TWeeklyScheduleProgram &program, int programId, bool programChanged) |
| |
|
bool | resolveWeeklyScheduleProgram (const WeeklyScheduleTimeSnapshot &time, TWeeklyScheduleProgram *program, int *programId) |
| |
Protected Member Functions inherited from Supla::Control::NativeWeeklyScheduleConfigHandler |
|
virtual Supla::Element * | getScheduleOwner () const =0 |
| |
|
virtual const char * | getDeviceLabel () const =0 |
| |
|
virtual const char * | getScheduleStorageTag (bool alt) const =0 |
| |
|
virtual bool | validateSchedule (const TChannelConfig_WeeklySchedule *schedule, bool alt) const =0 |
| |
|
virtual void | fillDefaultSchedule (TChannelConfig_WeeklySchedule *schedule, bool alt)=0 |
| |
|
virtual bool | supportsAltSchedule () const |
| |
|
virtual bool | hasAltScheduleStorage () const |
| |
|
virtual bool | hasPersistentDefaultSchedule (bool alt) const |
| |
|
bool | isConfigured () const |
| |
|
bool | isConfigured (bool alt) const |
| |
|
bool | isPersisted (bool alt) const |
| |
|
TChannelConfig_WeeklySchedule * | getSchedule (bool alt, bool loadIfMissing=true) |
| |
|
const TChannelConfig_WeeklySchedule * | getSchedule (bool alt, bool loadIfMissing=true) const |
| |
|
TChannelConfig_WeeklySchedule * | ensureSchedule (bool alt) |
| |
|
bool | ensureScheduleForUse (bool alt) |
| |
|
bool | updateSchedule (bool alt, const TChannelConfig_WeeklySchedule &schedule) |
| |
|
bool | saveSchedule (bool alt, bool notify=false) |
| |
|
void | clearSchedule (bool alt) |
| |
|
void | clearSchedules () |
| |
|
void | unloadSchedule (bool alt) |
| |
|
int | calculateIndex (enum DayOfWeek dayOfWeek, int hour, int quarter) const |
| |
|
int | getProgramId (const TChannelConfig_WeeklySchedule *schedule, int index) const |
| |
|
bool | setWeeklySchedule (TChannelConfig_WeeklySchedule *schedule, int index, int programId) const |
| |
|
TWeeklyScheduleProgram | getProgramById (const TChannelConfig_WeeklySchedule *schedule, int programId) const |
| |
|
TWeeklyScheduleProgram | getProgramAt (const TChannelConfig_WeeklySchedule *schedule, int quarterIndex) const |
| |
|
int | getCurrentQuarter () const |
| |
|
bool | resolveCurrentProgram (bool alt, TWeeklyScheduleProgram *program, int *programId) |
| |
|
bool | resolveCurrentProgram (bool alt, TWeeklyScheduleProgram *program, int *programId) const |
| |
|
bool | resolveCurrentProgram (bool alt, const WeeklyScheduleTimeSnapshot &time, TWeeklyScheduleProgram *program, int *programId) |
| |
| bool | resolveProgram (const WeeklyScheduleTimeSnapshot &time, bool alt, TWeeklyScheduleProgram *program, int *programId) override |
| |
| bool | resolveProgramTiming (const WeeklyScheduleTimeSnapshot &time, bool alt, int programId, int32_t *occurrence, uint32_t *elapsedSeconds) override |
| |
|
void | touchCache (bool active, uint32_t nowMs) |
| |
|
bool | processCache (bool active, uint32_t nowMs) |
| |
|
void | resetCache () |
| |