-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathSettings.h
49 lines (37 loc) · 1.13 KB
/
Settings.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
//
// Settings.h
// ringring.io
//
// Created by Peter Kosztolanyi on 15/02/2014.
//
//
#import <Foundation/Foundation.h>
typedef enum Setting : NSUInteger {
AutoClearCallHistory,
AutoClearChatHistory
} Setting;
typedef enum ClearInterval : NSUInteger {
NotDefined,
OneMinute,
FiveMinutes,
FiveteenMinutes,
ThirtyMinutes,
OneHour,
TwelveHours,
OneDay
} ClearInterval;
@interface Settings : NSObject
+ (BOOL)isFirstAlreadyLaunched;
+ (void)setFirstAlreadyLaunched:(BOOL)firstAlreadyLaunched;
+ (BOOL)isAutoClearCallHistoryEnabled;
+ (ClearInterval)autoClearCallHistory;
+ (BOOL)isAutoClearChatHistoryEnabled;
+ (ClearInterval)autoClearChatHistory;
+ (void)setAutoClearCallHistoryEnabled:(BOOL) autoClearCallHistoryEnabled;
+ (void)setAutoClearCallHistory:(ClearInterval) clearInterval;
+ (void)setAutoClearChatHistoryEnabled:(BOOL) autoClearChatHistoryEnabled;
+ (void)setAutoClearChatHistory:(ClearInterval) clearInterval;
+ (NSString *)clearIntervalToString:(ClearInterval)clearInterval;
+ (NSTimeInterval)clearIntervalToTimeInterval:(ClearInterval)clearInterval;
+ (NSString *)description;
@end