diff options
author | abhibeckert <abhi@abhibeckert.com> | 2008-04-04 11:37:36 +0000 |
---|---|---|
committer | abhibeckert <abhi@abhibeckert.com> | 2008-04-04 11:37:36 +0000 |
commit | 0f586da34dac2c764a12055158e4929cf69340a1 (patch) | |
tree | bca3868c9715a10c08017a0a7b6d5148f8bd3556 /SSHTunnel.h | |
parent | 5fb284b7c12887b8eea6c3a02fa83abf50793992 (diff) | |
download | sequelpro-0f586da34dac2c764a12055158e4929cf69340a1.tar.gz sequelpro-0f586da34dac2c764a12055158e4929cf69340a1.tar.bz2 sequelpro-0f586da34dac2c764a12055158e4929cf69340a1.zip |
Initial import from (slightly modified) CocoaMySQL v0.7b4
Diffstat (limited to 'SSHTunnel.h')
-rw-r--r-- | SSHTunnel.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/SSHTunnel.h b/SSHTunnel.h new file mode 100644 index 00000000..b945f205 --- /dev/null +++ b/SSHTunnel.h @@ -0,0 +1,57 @@ +#import <Cocoa/Cocoa.h> + +@interface SSHTunnel : NSObject +{ + int code; + NSArray *tunnelsLocal; + NSArray *tunnelsRemote; + + BOOL shouldStop; + NSTask *task; + BOOL connAuth; + BOOL autoConnect; + NSPipe *stdErrPipe; + NSString *connName; + NSString *status; + NSString *connPort; + BOOL connRemote; + BOOL compression; + BOOL v1; + NSString * encryption; + BOOL socks4; + NSNumber *socks4p; + NSString *connUser; + NSString *connHost; +} +-(id)initWithName:(NSString*)aName; +-(id)initWithDictionary:(NSDictionary*)aDictionary; ++(id)tunnelWithName:(NSString*)aName; ++(NSArray*)tunnelsFromArray:(NSArray*)anArray; + +-(void)addLocalTunnel:(NSDictionary*)aDictionary; +- (void)removeLocal:(int)index; +-(void)addRemoteTunnel:(NSDictionary*)aDictionary; +- (void)removeRemote:(int)index; +- (void)setLocalValue:(NSString*)aValue ofTunnel:(int)index forKey:(NSString*)key; +- (void)setRemoteValue:(NSString*)aValue ofTunnel:(int)index forKey:(NSString*)key; + +#pragma mark - +#pragma mark Execution related +- (void)startTunnel; +- (void)stopTunnel; +- (void)toggleTunnel; +- (void)launchTunnel:(id)foo; +- (void)stdErr:(NSNotification*)aNotification; +- (BOOL)isRunning; + +#pragma mark - +#pragma mark Getting tunnel informations +- (NSString*)status; +- (NSArray*)arguments; +- (NSDictionary*)dictionary; + +#pragma mark - +#pragma mark Key/Value coding +- (NSImage*)icon; + +@end |