aboutsummaryrefslogtreecommitdiffstats
path: root/KeyChain.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2008-12-02 18:10:26 +0000
committerstuconnolly <stuart02@gmail.com>2008-12-02 18:10:26 +0000
commitce3f6e3017607cfd58a8af6f17b906f5d8b60f4b (patch)
treeab099957650e7650600e22da42a804c429da8e47 /KeyChain.h
parent7864bf91a63ad879ef1c6edc6a10b9dc1f932e12 (diff)
downloadsequelpro-ce3f6e3017607cfd58a8af6f17b906f5d8b60f4b.tar.gz
sequelpro-ce3f6e3017607cfd58a8af6f17b906f5d8b60f4b.tar.bz2
sequelpro-ce3f6e3017607cfd58a8af6f17b906f5d8b60f4b.zip
Fixed various Keychain issues regarding already existing passwords by checking if an item of the same name and account already exists. This revision also fixes issue #94 by removing the Keychain password first and then the favourite from the array controller.
Diffstat (limited to 'KeyChain.h')
-rw-r--r--KeyChain.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/KeyChain.h b/KeyChain.h
index 0179e899..8b4a4e1d 100644
--- a/KeyChain.h
+++ b/KeyChain.h
@@ -25,13 +25,11 @@
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
-
-@interface KeyChain : NSObject {
-
-}
+@interface KeyChain : NSObject
- (void)addPassword:(NSString *)password forName:(NSString *)name account:(NSString *)account;
- (NSString *)getPasswordForName:(NSString *)name account:(NSString *)account;
- (void)deletePasswordForName:(NSString *)name account:(NSString *)account;
+- (BOOL)passwordExistsForName:(NSString *)name account:(NSString *)account;
@end