2011-11-30 21:42:40 +00:00
|
|
|
//
|
|
|
|
// OPAppDelegate.h
|
|
|
|
// OnePassword
|
|
|
|
//
|
|
|
|
// Created by Maarten Billemont on 24/11/11.
|
|
|
|
// Copyright (c) 2011 Lyndir. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
@interface OPAppDelegate : AbstractAppDelegate
|
|
|
|
|
2012-01-29 11:41:48 +00:00
|
|
|
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
|
|
|
|
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
|
|
|
|
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
|
|
|
|
@property (strong, nonatomic) NSString *keyPhrase;
|
|
|
|
@property (strong, nonatomic) NSData *keyPhraseHash;
|
|
|
|
@property (strong, nonatomic) NSString *keyPhraseHashHex;
|
2012-01-05 00:44:15 +00:00
|
|
|
|
|
|
|
+ (OPAppDelegate *)get;
|
2012-01-24 23:30:43 +00:00
|
|
|
+ (NSManagedObjectModel *)managedObjectModel;
|
2012-01-29 11:41:48 +00:00
|
|
|
+ (NSManagedObjectContext *)managedObjectContext;
|
2011-11-30 21:42:40 +00:00
|
|
|
|
|
|
|
- (void)saveContext;
|
|
|
|
- (NSURL *)applicationDocumentsDirectory;
|
|
|
|
|
2012-02-02 13:56:09 +00:00
|
|
|
- (void)showGuide;
|
|
|
|
- (void)loadKeyPhrase;
|
|
|
|
|
2011-11-30 21:42:40 +00:00
|
|
|
@end
|