Started transition to document based application

This commit is contained in:
michael starke
2013-05-08 23:56:17 +02:00
parent b3bbcf55fb
commit 35c92fbf0b
5 changed files with 174 additions and 2 deletions

25
MacPass/MPDocument.h Normal file
View File

@@ -0,0 +1,25 @@
//
// MPDocument.h
// MacPass
//
// Created by Michael Starke on 08.05.13.
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "MPDatabaseVersion.h"
@class KdbGroup;
@interface MPDocument : NSDocument
@property (assign, readonly) KdbGroup *root;
@property (retain, readonly) NSURL *file;
@property (nonatomic,retain) NSString *password;
@property (nonatomic, retain) NSURL *key;
@property (assign, readonly) MPDatabaseVersion version;
- (id)initWithVersion:(MPDatabaseVersion)version;
- (BOOL)decryptWithPassword:(NSString *)password keyFileURL:(NSURL *)keyFileURL;
@end