diff options
Diffstat (limited to 'Source/SPSSHTunnel.h')
-rw-r--r-- | Source/SPSSHTunnel.h | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/Source/SPSSHTunnel.h b/Source/SPSSHTunnel.h index db01c98e..e9b06cb6 100644 --- a/Source/SPSSHTunnel.h +++ b/Source/SPSSHTunnel.h @@ -1,13 +1,28 @@ -#import <Cocoa/Cocoa.h> +// +// SPSSHTunnel.h +// sequel-pro +// +// Created by Rowan Beentje on April 26, 2009. Inspired by code by +// Yann Bizuel for SSH Tunnel Manager 2. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// More info at <http://code.google.com/p/sequel-pro/> -enum spsshtunnel_states -{ - SPSSH_STATE_IDLE = 0, - SPSSH_STATE_CONNECTING = 1, - SPSSH_STATE_WAITING_FOR_AUTH = 2, - SPSSH_STATE_CONNECTED = 3, - SPSSH_STATE_FORWARDING_FAILED = 4 -}; +#import <Cocoa/Cocoa.h> +#import <MCPKit/MCPKit.h> enum spsshtunnel_password_modes { @@ -15,8 +30,7 @@ enum spsshtunnel_password_modes SPSSH_PASSWORD_ASKS_UI = 1 }; - -@interface SPSSHTunnel : NSObject +@interface SPSSHTunnel : NSObject <MCPConnectionProxy> { IBOutlet NSWindow *sshQuestionDialog; IBOutlet NSTextField *sshQuestionText; |