Files
MacPass/MacPass/MPDatabaseController.h
michael starke 361b405825 Added MPToolbarButton to handle small control size in Toolbar
EntryEditView now gets displayed (without any functionality)
2013-02-26 20:57:25 +01:00

37 lines
1.0 KiB
Objective-C

//
// MPDatabaseController.h
// MacPass
//
// Created by michael starke on 13.02.13.
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
/*
Notification is posted, when a database is loaded
The userInfo dictionary contains the following keys
MPDatabaseControllerDatabaseKey
*/
APPKIT_EXTERN NSString *const MPDatabaseControllerDidLoadDatabaseNotification;
APPKIT_EXTERN NSString *const MPDatabaseControllerDidCloseDatabaseNotification;
/*
Database loaded or closed
*/
APPKIT_EXTERN NSString *const MPDatabaseControllerDatabaseKey;
@class MPDatabaseDocument;
@interface MPDatabaseController : NSObject
@property (retain, readonly, nonatomic) MPDatabaseDocument *database;
+ (MPDatabaseController *)defaultController;
+ (BOOL)hasOpenDatabase;
//- (MPDatabaseDocument *)createDatabase:(MPDatabaseVersion )version password:(NSString *)password keyfile:(NSURL *)key;
- (MPDatabaseDocument *)openDatabase:(NSURL *)file password:(NSString *)password keyfile:(NSURL *)key;
@end