-
Notifications
You must be signed in to change notification settings - Fork 40
/
Alarm.h
67 lines (50 loc) · 1.38 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#import <Foundation/Foundation.h>
#define ALARMTYPE_DEFAULT 0
#define ALARMTYPE_TRACK 1
#define ALARMTYPE_PLAYLIST 2
@interface Alarm : NSObject <NSCopying>
{
BOOL isEnabled;
BOOL usesShuffle;
BOOL usesEasyWake;
int schedule;
int type;
int trackID;
int playlistID;
NSString *persistentTrackID;
NSString *persistentPlaylistID;
NSCalendarDate *time;
}
// Global Class Methods
+ (NSString *)defaultAlarmFile;
// Init routines
- (id)init;
- (id)initWithDict:(NSDictionary *)dict;
// For alarm comparisons
- (BOOL)isEqualToAlarm:(Alarm *)anAlarm;
// For saving to the userDefaults dictionary
- (NSDictionary *)prefsDictionary;
// For updating the time of alarms
- (BOOL)updateTime;
- (void)updateTimeZone;
// Get and Set Methods
- (BOOL)isEnabled;
- (void)setIsEnabled:(BOOL)newStatus;
- (BOOL)usesShuffle;
- (void)setUsesShuffle:(BOOL)shuffleFlag;
- (BOOL)usesEasyWake;
- (void)setUsesEasyWake:(BOOL)easyWakeFlag;
- (int)schedule;
- (void)setSchedule:(int)schedule;
- (BOOL)isTrack;
- (BOOL)isPlaylist;
- (void)setType:(int)type;
- (int)trackID;
- (NSString *)persistentTrackID;
- (void)setTrackID:(int)trackID withPersistentTrackID:(NSString *)persistentTrackID;
- (int)playlistID;
- (NSString *)persistentPlaylistID;
- (void)setPlaylistID:(int)playlistID withPersistentPlaylistID:(NSString *)persistentPlaylistID;
- (NSCalendarDate *)time;
- (void)setTime:(NSCalendarDate *)time;
@end