diff options
author | mtvee <emptyvee@gmail.com> | 2009-05-18 06:51:08 +0000 |
---|---|---|
committer | mtvee <emptyvee@gmail.com> | 2009-05-18 06:51:08 +0000 |
commit | 570bd13276ebca100befb65b273e7ba51e578b1a (patch) | |
tree | e695930a6895da3801b32dfb70f7becafe556586 /Source/CMMCPConnection.h | |
parent | 61da30eb923d774336ad10d252d4d0790999f33f (diff) | |
download | sequelpro-570bd13276ebca100befb65b273e7ba51e578b1a.tar.gz sequelpro-570bd13276ebca100befb65b273e7ba51e578b1a.tar.bz2 sequelpro-570bd13276ebca100befb65b273e7ba51e578b1a.zip |
- hide 'rename' context menu if selection is not a table
- added methods to CMMCPConnection to determine server major,minor,release version
Diffstat (limited to 'Source/CMMCPConnection.h')
-rw-r--r-- | Source/CMMCPConnection.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/CMMCPConnection.h b/Source/CMMCPConnection.h index 8473c962..1ca4a953 100644 --- a/Source/CMMCPConnection.h +++ b/Source/CMMCPConnection.h @@ -50,6 +50,8 @@ BOOL useKeepAlive; float keepAliveInterval; + NSString *serverVersionString; + NSTimer *keepAliveTimer; NSDate *lastKeepAliveSuccess; } @@ -79,4 +81,11 @@ - (void) threadedKeepAlive; - (const char *) cStringFromString:(NSString *) theString usingEncoding:(NSStringEncoding) encoding; +/* return server major version number or -1 on fail */ +- (int)serverMajorVersion; +/* return server minor version number or -1 on fail */ +- (int)serverMinorVersion; +/* return server release version number or -1 on fail */ +- (int)serverReleaseVersion; + @end |