bolar_2 backup
This commit is contained in:
32
main/schedule/schedule_coordinator.h
Normal file
32
main/schedule/schedule_coordinator.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include "schedule/alarm_service.h"
|
||||
#include "schedule/reminder_service.h"
|
||||
#include "schedule/schedule_types.h"
|
||||
|
||||
namespace borla {
|
||||
|
||||
class ScheduleCoordinator final : public IScheduleCommandHandler {
|
||||
public:
|
||||
ScheduleCoordinator(
|
||||
ReminderService& reminders,
|
||||
AlarmService& alarms)
|
||||
: reminders_(reminders), alarms_(alarms)
|
||||
{
|
||||
}
|
||||
|
||||
bool AddReminder(uint32_t duration_seconds) override;
|
||||
void CancelReminder(TimerCancelScope scope) override;
|
||||
bool SetAlarm(const AlarmEntry& alarm) override;
|
||||
void DeleteAlarm(int32_t id) override;
|
||||
bool SyncAlarms(const AlarmList& alarms) override;
|
||||
void SetAlarmToneIndices(
|
||||
int8_t set_tone_index,
|
||||
int8_t wake_tone_index) override;
|
||||
|
||||
private:
|
||||
ReminderService& reminders_;
|
||||
AlarmService& alarms_;
|
||||
};
|
||||
|
||||
} // namespace borla
|
||||
Reference in New Issue
Block a user