summaryrefslogtreecommitdiffabout
path: root/pumpkin/ConfirmRequest.h
Unidiff
Diffstat (limited to 'pumpkin/ConfirmRequest.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pumpkin/ConfirmRequest.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/pumpkin/ConfirmRequest.h b/pumpkin/ConfirmRequest.h
new file mode 100644
index 0000000..5db6f2e
--- a/dev/null
+++ b/pumpkin/ConfirmRequest.h
@@ -0,0 +1,38 @@
1
2#import <Cocoa/Cocoa.h>
3#import "TFTPPacket.h"
4#import "XFer.h"
5
6enum RequestVerdict {
7 verdictDeny = 0,
8 verdictAllow, verdictRename,
9 verdictDefault = verdictDeny
10};
11
12@interface ConfirmRequest : NSWindowController {
13 XFer *xfer;
14 NSString *remoteHost;
15 NSString *remoteAction;
16 NSString *fileName;
17 BOOL fileExists;
18 BOOL isWriteRequest;
19 NSTimer *timeout;
20}
21
22@property (copy) NSString *remoteHost;
23@property (copy) NSString *remoteAction;
24@property (copy) NSString *fileName;
25@property BOOL fileExists;
26@property BOOL isWriteRequest;
27
28@property (assign) IBOutlet NSButton *allowButton;
29@property (assign) IBOutlet NSButton *denyButton;
30@property (assign) IBOutlet NSButton *renameButton;
31
32- (IBAction)letItBe:(id)sender;
33- (IBAction)deny:(id)sender;
34- (IBAction)rename:(id)sender;
35
36+ (void) confirmationWithXfer:(XFer*)x;
37
38@end