2
0
MasterPassword/platform-darwin/Source/MPAppDelegate_Shared.h

31 lines
785 B
C
Raw Normal View History

//
// MPAppDelegate_Shared.h
// MasterPassword
//
// Created by Maarten Billemont on 24/11/11.
// Copyright (c) 2011 Lyndir. All rights reserved.
//
#import "MPEntities.h"
2012-05-13 08:24:19 +00:00
#if TARGET_OS_IPHONE
@interface MPAppDelegate_Shared : PearlAppDelegate
2012-05-13 08:24:19 +00:00
#else
2017-04-01 04:30:25 +00:00
@interface MPAppDelegate_Shared : NSObject<PearlConfigDelegate>
2012-05-13 08:24:19 +00:00
#endif
@property(strong, nonatomic, readonly) MPKey *key;
@property(strong, nonatomic, readonly) NSManagedObjectID *activeUserOID;
@property(strong, nonatomic, readonly) NSPersistentStoreCoordinator *storeCoordinator;
+ (instancetype)get;
- (MPUserEntity *)activeUserForMainThread;
- (MPUserEntity *)activeUserInContext:(NSManagedObjectContext *)context;
- (void)setActiveUser:(MPUserEntity *)activeUser;
2014-09-22 03:11:05 +00:00
- (void)handleCoordinatorError:(NSError *)error;
@end