-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalarm.h
34 lines (29 loc) · 828 Bytes
/
alarm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef ALARM_H_
#define ALARM_H_
#include "timeDate.h"
struct aTime
{
int active;
timeType time;
};
class alarm
{
public:
alarm(const timeType *cTime, const unsigned *weekDay);
bool alarmTimeNow();
void clearAlarm(unsigned weekDay);
void clearAllAlarms();
void toggleActivateDeactivate(unsigned weekDay);
const char * weekAlarmsToString();
const char * hourToString(const unsigned * weekDay);
const char * minuteToString(const unsigned * weekDay);
void incrementHour(const unsigned * weekDay);
void decrementHour(const unsigned * weekDay);
void incrementMin(const unsigned * weekDay);
void decrementMin(const unsigned * weekDay);
private:
aTime weekDaysAlarms[7];
const timeType * currentTime;
const unsigned * currentWeekDay;
};
#endif /* ALARM_H_ */