aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SSHTunnel.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2008-12-10 16:52:52 +0000
committerstuconnolly <stuart02@gmail.com>2008-12-10 16:52:52 +0000
commitfab9a6506cd04ec8f840c98772a80c44a79c74a7 (patch)
tree3cd483487bef381c934717f10df71d306c7eaf97 /Source/SSHTunnel.h
parent4c3b208fad0572d8d1a79bba1bd1b8147fd0f8a6 (diff)
downloadsequelpro-fab9a6506cd04ec8f840c98772a80c44a79c74a7.tar.gz
sequelpro-fab9a6506cd04ec8f840c98772a80c44a79c74a7.tar.bz2
sequelpro-fab9a6506cd04ec8f840c98772a80c44a79c74a7.zip
MERGED r262:266 from branches/stuart02 to trunk to include new project structure.
Diffstat (limited to 'Source/SSHTunnel.h')
-rw-r--r--Source/SSHTunnel.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/Source/SSHTunnel.h b/Source/SSHTunnel.h
new file mode 100644
index 00000000..ffe29624
--- /dev/null
+++ b/Source/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