summaryrefslogtreecommitdiffabout
path: root/pumpkin/ConfirmRequest.h
authorMichael Krelin <hacker@klever.net>2012-12-08 21:19:17 (UTC)
committer Michael Krelin <hacker@klever.net>2012-12-11 21:59:29 (UTC)
commit8808689fe340bec6e90ab13dd502292b0579cf1f (patch) (unidiff)
tree45b7c863151341f687b74e40bffcbd7ab5468783 /pumpkin/ConfirmRequest.h
parent6e7e413ca364d79673e523c09767c18e7cff1bec (diff)
downloadpumpkin-8808689fe340bec6e90ab13dd502292b0579cf1f.zip
pumpkin-8808689fe340bec6e90ab13dd502292b0579cf1f.tar.gz
pumpkin-8808689fe340bec6e90ab13dd502292b0579cf1f.tar.bz2
initial osx portosx/0.0
Signed-off-by: Michael Krelin <hacker@klever.net>
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