-
-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathAddNewSafeHelper.h
49 lines (39 loc) · 2.11 KB
/
AddNewSafeHelper.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
//
// AddNewSafeHelper.h
// Strongbox
//
// Created by Mark on 05/12/2018.
// Copyright © 2014-2021 Mark McGuill. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SafeStorageProvider.h"
#import "DatabaseModel.h"
#import "SelectedStorageParameters.h"
extern const DatabaseFormat kDefaultFormat;
NS_ASSUME_NONNULL_BEGIN
@interface AddNewSafeHelper : NSObject
+ (void)createNewDatabase:(UIViewController*)vc
name:(NSString *)name
password:(NSString *)password
keyFileBookmark:(NSString * _Nullable)keyFileBookmark
keyFileFileName:(NSString * _Nullable)keyFileFileName
onceOffKeyFileData:(NSData* _Nullable)onceOffKeyFileData
yubiKeyConfig:(YubiKeyHardwareConfiguration*_Nullable)yubiKeyConfig
storageParams:(SelectedStorageParameters*)storageParams
format:(DatabaseFormat)format
completion:(void (^)(BOOL userCancelled, DatabasePreferences*_Nullable metadata, NSData*_Nullable initialSnapshot, NSError*_Nullable error))completion;
+ (void)createNewExpressDatabase:(UIViewController*)vc
name:(NSString *)name
password:(NSString *)password
completion:(void (^)(BOOL userCancelled, DatabasePreferences*_Nullable metadata, NSData*_Nullable initialSnapshot, NSError*_Nullable error))completion;
+ (void)createNewExpressDatabase:(UIViewController*)vc
name:(NSString *)name
model:(DatabaseModel*)model
completion:(void (^)(BOOL userCancelled, DatabasePreferences*_Nullable metadata, NSData*_Nullable initialSnapshot, NSError*_Nullable error))completion;
+ (void)createNewExpressDatabase:(UIViewController*)vc
name:(NSString *)name
password:(NSString *)password
forceLocal:(BOOL)forceLocal
completion:(void (^)(BOOL userCancelled, DatabasePreferences*_Nullable metadata, NSData*_Nullable initialSnapshot, NSError*_Nullable error))completion;
@end
NS_ASSUME_NONNULL_END