forked from dstuecken/sshfs-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SSHFS_GUIAppDelegate.h
92 lines (64 loc) · 2.22 KB
/
SSHFS_GUIAppDelegate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
//
// SSHFS_GUIAppDelegate.h
// SSHFS GUI
//
// Created by Юрий Насретдинов on 10.01.10.
// Copyright 2010 МФТИ. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "Foundation/Foundation.h"
#import "RecentServersProvider.h"
#define IMPLEMENTATION_NONE 0
#define IMPLEMENTATION_BUNDLED 1
#define IMPLEMENTATION_PRQSORG 2
#define IMPLEMENTATION_CUSTOM 3
@interface SSHFS_GUIAppDelegate : NSObject <NSControlTextEditingDelegate, NSWindowDelegate, NSTableViewDelegate>
{
NSWindow *__weak window;
IBOutlet NSWindow *preferencesWindow;
IBOutlet NSTextField *preferencesWindowSshfsPath;
IBOutlet NSTextField *server;
IBOutlet NSTextField *login;
IBOutlet NSTextField *port;
IBOutlet NSSecureTextField *password;
IBOutlet NSPathControl* pathControl;
IBOutlet NSTextField *directory;
IBOutlet NSTextField *localDirectory;
IBOutlet NSTextField *cmdLineOptions;
IBOutlet NSTextField *command;
IBOutlet NSProgressIndicator *progress;
IBOutlet NSButton *connectButton;
IBOutlet NSButton *stopButton;
IBOutlet NSButton *removeButton;
IBOutlet NSTableView *recentServersView;
IBOutlet NSApplication *currentApp;
BOOL shouldTerminate;
BOOL shouldSkipConnectionError;
// shared user defaults cache
int implementation;
BOOL compression;
BOOL useKeychain;
NSString *sshfsPath;
// / shared user defaults cache
RecentServersProvider *recentServersDataSource;
int pipes_read[2], pipes_write[2];
}
@property (weak) IBOutlet NSWindow *window;
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification;
- (void)windowWillClose:(NSNotification *)notification;
- (IBAction)connectButtonClicked:(id)sender;
- (IBAction)stopButtonClicked:(id)sender;
- (IBAction)removeButtonClicked:(id)sender;
- (IBAction)addServerToRecents:(id)sender;
- (IBAction)cellAction:(id)sender;
- (IBAction)openFileDialog:(id)sender;
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication;
- (IBAction)showAboutPanel:(id)sender;
- (IBAction)showPreferencesPane:(id)sender;
- (void)setConnectingState:(BOOL)connecting;
- (void)askMessage:(id)msg;
- (void)passwordTeller;
- (void)killByPattern:(NSString *)patt, ...;
- (void)awakeFromNib;
- (void) loadRecentServerSelection;
@end