-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathPreferences.h
51 lines (42 loc) · 1.23 KB
/
Preferences.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
#define ONSchemaVersion 1
enum
{
ONIconAlignmentDefault = 0,
ONIconAlignmentLeft = 1,
ONIconAlignmentRight = 2
};
typedef NSUInteger ONIconAlignment;
@interface ONApplicationIcon : NSObject
{
NSMutableDictionary* _dictionary;
}
@property(assign, nonatomic) ONIconAlignment alignment;
-(NSMutableDictionary*)toDictionary;
@end
@interface ONApplication : NSObject
{
NSMutableDictionary* _dictionary;
}
@property(retain, nonatomic) NSMutableDictionary* icons;
-(NSMutableDictionary*)toDictionary;
-(bool)containsIcon:(NSString*)iconName;
@end
@interface ONPreferences : NSObject
{
NSMutableDictionary* _data;
NSMutableDictionary* _applications;
}
@property(readonly, nonatomic) NSMutableDictionary* applications;
@property(assign) bool enabled;
@property(assign) bool iconsOnLeft;
@property(assign) bool silentModeEnabled;
@property(assign) bool silentIconOnLeft;
+(id)sharedInstance;
-(ONApplication*)getApplication:(NSString*)identifer;
-(void)removeApplication:(NSString*)identifer;
-(id)addIcon:(NSString*)iconName forApplication:(NSString*)identifer;
-(void)removeIcon:(NSString*)iconName fromApplication:(NSString*)identifer;
-(ONApplicationIcon*)getIcon:(NSString*)iconName forApplication:(NSString*)identifer;
-(void)reload;
-(void)save;
@end