Home2L - C/C++ API v1.4-0-g38cc (2024-05-25)
Smart Tools for a Private Home
alarmclock.H File Reference
#include "ui_base.H"
Include dependency graph for alarmclock.H:

Go to the source code of this file.

Functions

Init/done ...
void AlarmClockInit ()
 Initialize the alarm clock.
 
void AlarmClockDone ()
 Shutdown the alarm clock.
 
Direct actions ...
void AlarmClockEnableDisable (bool enable)
 Enable/disable alarm clock as a whole.
 
void AlarmClockOff ()
 "Off" button of the alarm clock => go to standby state.
 
void AlarmClockSnooze ()
 "Snooze" button of the alarm clock.
 
High-level actions / UI integration ...
void AlarmClockSetButton (class CButton *btn)
 Define a main button. Its surface is set to indicate the alarm state. More...
 
void AlarmClockHandlePushed (bool enableOff, bool longPush)
 Handle a push on (one of) the alarm clock button(s) in the interface. More...
 
Setup dialog ...
void AlarmClockRunSetDialog ()
 Run the setup screen to edit alarm times.
 

Alarm clock state ...

enum  TAlarmClockState {
  acsDisabled = 0 , acsStandby , acsSnooze , acsAlarmPreRinging ,
  acsAlarmMusicTrying , acsAlarmMusicOk , acsAlarmRinging
}
 
static bool AlarmClockStateIsAlarm (TAlarmClockState state)
 
TAlarmClockState AlarmClockGetState ()
 Get the current alarm clock state.