2012-05-07 22:18:01 +02:00
|
|
|
//
|
|
|
|
// MPAppDelegate_Key.h
|
|
|
|
// MasterPassword
|
|
|
|
//
|
|
|
|
// Created by Maarten Billemont on 24/11/11.
|
|
|
|
// Copyright (c) 2011 Lyndir. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "MPAppDelegate_Shared.h"
|
|
|
|
|
|
|
|
#import "UbiquityStoreManager.h"
|
|
|
|
|
2012-05-09 10:11:34 +02:00
|
|
|
typedef enum {
|
|
|
|
MPImportResultSuccess,
|
|
|
|
MPImportResultCancelled,
|
|
|
|
MPImportResultInvalidPassword,
|
|
|
|
MPImportResultMalformedInput,
|
|
|
|
MPImportResultInternalError,
|
|
|
|
} MPImportResult;
|
|
|
|
|
2013-04-01 22:03:28 -04:00
|
|
|
@interface MPAppDelegate_Shared (Store)<UbiquityStoreManagerDelegate>
|
2012-05-07 22:18:01 +02:00
|
|
|
|
2013-01-31 00:42:32 -05:00
|
|
|
+ (NSManagedObjectContext *)managedObjectContextForThreadIfReady;
|
2013-02-08 18:11:24 -05:00
|
|
|
+ (BOOL)managedObjectContextPerformBlock:(void (^)(NSManagedObjectContext *moc))mocBlock;
|
|
|
|
+ (BOOL)managedObjectContextPerformBlockAndWait:(void (^)(NSManagedObjectContext *))mocBlock;
|
2012-05-07 22:18:01 +02:00
|
|
|
|
2013-04-03 19:25:15 -04:00
|
|
|
- (UbiquityStoreManager *)storeManager;
|
2012-08-19 09:34:49 +02:00
|
|
|
- (MPImportResult)importSites:(NSString *)importedSitesString
|
|
|
|
askImportPassword:(NSString *(^)(NSString *userName))importPassword
|
|
|
|
askUserPassword:(NSString *(^)(NSString *userName, NSUInteger importCount, NSUInteger deleteCount))userPassword;
|
2012-05-08 15:57:11 +02:00
|
|
|
- (NSString *)exportSitesShowingPasswords:(BOOL)showPasswords;
|
|
|
|
|
2012-05-07 22:18:01 +02:00
|
|
|
@end
|