forked from SelfControlApp/selfcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSCMigrationUtilities.h
More file actions
34 lines (22 loc) · 890 Bytes
/
SCMigrationUtilities.h
File metadata and controls
34 lines (22 loc) · 890 Bytes
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
//SCMigrationUtilities// SCMigration.h
// SelfControl
//
// Created by Charlie Stigler on 1/19/21.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
// Utility methods dealing with legacy settings, legacy blocks,
// and migrating us from old versions of the app to the new one
@interface SCMigrationUtilities : NSObject
+ (NSString*)legacySecuredSettingsFilePathForUser:(uid_t)userId;
+ (BOOL)legacySettingsFoundForUser:(uid_t)controllingUID;
+ (BOOL)legacySettingsFoundForCurrentUser;
+ (BOOL)legacyLockFileExists;
+ (BOOL)legacyBlockIsRunningInSettingsFile:(NSURL*)settingsFileURL;
+ (BOOL)blockIsRunningInLegacyDictionary:(NSDictionary*)dict;
+ (NSDate*)legacyBlockEndDate;
+ (void)copyLegacySettingsToDefaults:(uid_t)controllingUID;
+ (void)copyLegacySettingsToDefaults;
+ (NSError*)clearLegacySettingsForUser:(uid_t)controllingUID;
@end
NS_ASSUME_NONNULL_END