//
//  DBAdmin.h
//  EAMiPad
//
//  Created by temp on 3/16/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DBAdmin : NSObject

+ (NSString *) getDBPath;
+ (NSString *) getDBPathBase;
+ (void) copyDatabaseIfNeeded;
+ (void) upgradeDatabase;
+ (BOOL) checkDBUpgraded;
+ (void) resetDBUpgraded;
+ (void)encryptDatabaseAtSourceLocation:(NSString *)defaultDBPath destinationLocation:(NSString *)dbPath forDBName:(NSString *)currentDBName andPassword:(NSString *)strPassword;
+ (void)decryptDatabaseAtSourceLocation:(NSString *)defaultDBPath destinationLocation:(NSString *)dbPath forDBName:(NSString *)currentDBName andPassword:(NSString *)strPassword;
+ (void)encryptAllDatabaseFiles:(NSString *)strPassword;
+ (void)decryptAllDatabaseFiles;

@end
