aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-10-06 14:16:39 +0000
committerBibiko <bibiko@eva.mpg.de>2009-10-06 14:16:39 +0000
commit3f2838787602f50176a0ea4e15c0f69cd403920c (patch)
tree2474c3de795fef81736866ffacc5d4866f41c07a /Source/TableDocument.h
parent27eba105aef0a612e5a91af02a0b87b99b06ab78 (diff)
downloadsequelpro-3f2838787602f50176a0ea4e15c0f69cd403920c.tar.gz
sequelpro-3f2838787602f50176a0ea4e15c0f69cd403920c.tar.bz2
sequelpro-3f2838787602f50176a0ea4e15c0f69cd403920c.zip
• changed routine for opening SPF files
- if no passwords are stored inside the SPF file try to retrieve the passwords from the KeyChain - for that purpose store the key 'kcid' in the SPF file if available - changed the accessory view: 'auto_connect' is always enabled (even no pw will be saved due to new routine) • fixed issue for Open Recent of SQL files • add a saved SPF file to Open Recent list if the user saved an Untitled doc or saved an open SPF file under an other name
Diffstat (limited to 'Source/TableDocument.h')
-rw-r--r--Source/TableDocument.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/TableDocument.h b/Source/TableDocument.h
index b907ab37..3a8adbfb 100644
--- a/Source/TableDocument.h
+++ b/Source/TableDocument.h
@@ -144,6 +144,8 @@ enum sp_current_query_mode
NSDictionary *spfSession;
NSMutableDictionary *spfPreferences;
NSMutableDictionary *spfDocData;
+
+ NSString *keyChainID;
}
- (NSString *)getHTMLforPrint;
@@ -151,9 +153,10 @@ enum sp_current_query_mode
- (void)initQueryEditorWithString:(NSString *)query;
- (void)initWithConnectionFile:(NSString *)path;
// Connection callback and methods
-- (void) setConnection:(MCPConnection *)theConnection;
+- (void)setConnection:(MCPConnection *)theConnection;
- (void)setShouldAutomaticallyConnect:(BOOL)shouldAutomaticallyConnect;
- (BOOL)shouldAutomaticallyConnect;
+- (void)setKeychainID:(NSString *)theID;
// Database methods
- (IBAction)setDatabases:(id)sender;
@@ -219,6 +222,7 @@ enum sp_current_query_mode
- (NSString *)mySQLVersion;
- (NSString *)user;
- (NSString *)displaySPName;
+- (NSString *)keyChainID;
// Notification center methods
- (void)willPerformQuery:(NSNotification *)notification;