aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/SSHTunnel_old.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/SSHTunnel_old.h')
-rwxr-xr-xtrunk/SSHTunnel_old.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/trunk/SSHTunnel_old.h b/trunk/SSHTunnel_old.h
new file mode 100755
index 00000000..f70d3a52
--- /dev/null
+++ b/trunk/SSHTunnel_old.h
@@ -0,0 +1,41 @@
+/*
+
+SSHTunnel.h
+
+Original code by tynsoe.org, Copyright 2002
+Modified by Lorenz Textor for use with Sequel Pro
+
+*/
+
+#import <Cocoa/Cocoa.h>
+
+@interface SSHTunnel : NSObject
+{
+ BOOL shouldStop;
+ NSTask *task;
+ NSPipe *stdErrPipe;
+ NSString *status;
+
+ NSDictionary *tunnelArguments;
+}
+
+// initialization
+- (id)init;
+
+// Getting tunnels informations
+- (BOOL)isRunning;
+- (NSString *)status;
+
+// starting & stopping the tunnel
+- (void)startTunnel;
+- (void)startTunnelWithArguments:(NSDictionary *)args;
+- (void)stopTunnel;
+- (void)launchTunnel:(NSArray*)arguments;
+- (void)stdErr:(NSNotification*)aNotification;
+- (id)authenticate:(NSScriptCommand *)command;
+- (id)handleQuitScriptCommand:(NSScriptCommand *)command;
+
+// deallocation
+- (void) dealloc;
+
+@end