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

29 lines
784 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
@interface MPAppDelegate_Shared : NSObject <PearlConfigDelegate>
#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