-
Notifications
You must be signed in to change notification settings - Fork 39
/
AlarmScheduler.h
34 lines (24 loc) · 740 Bytes
/
AlarmScheduler.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
#import <Foundation/Foundation.h>
@class Alarm;
@interface AlarmScheduler : NSObject
+ (void)initialize;
+ (void)deinitialize;
// Saving alarm info to user defaults
+ (void)savePrefs;
// Getting alarms
+ (Alarm *)alarmReferenceForIndex:(int)index;
+ (Alarm *)alarmCloneForIndex:(int)index;
// Changing alarms
+ (void)setAlarm:(Alarm *)clone forReference:(Alarm *)reference;
+ (void)addAlarm:(Alarm *)newAlarm;
+ (void)removeAlarm:(Alarm *)deletedAlarm;
// Updating alarms
+ (void)updateAllAlarms;
// Getting number of alarms
+ (int)numberOfAlarms;
// Getting info about next and last alarm
+ (Alarm *)lastAlarmClone;
+ (NSCalendarDate *)nextAlarmDate;
// Querying for sounding alarms
+ (int)alarmStatus:(NSCalendarDate *)now;
@end