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) (side-by-side diff)
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) (show 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 @@
+
+#import <Cocoa/Cocoa.h>
+#import "TFTPPacket.h"
+#import "XFer.h"
+
+enum RequestVerdict {
+ verdictDeny = 0,
+ verdictAllow, verdictRename,
+ verdictDefault = verdictDeny
+};
+
+@interface ConfirmRequest : NSWindowController {
+ XFer *xfer;
+ NSString *remoteHost;
+ NSString *remoteAction;
+ NSString *fileName;
+ BOOL fileExists;
+ BOOL isWriteRequest;
+ NSTimer *timeout;
+}
+
+@property (copy) NSString *remoteHost;
+@property (copy) NSString *remoteAction;
+@property (copy) NSString *fileName;
+@property BOOL fileExists;
+@property BOOL isWriteRequest;
+
+@property (assign) IBOutlet NSButton *allowButton;
+@property (assign) IBOutlet NSButton *denyButton;
+@property (assign) IBOutlet NSButton *renameButton;
+
+- (IBAction)letItBe:(id)sender;
+- (IBAction)deny:(id)sender;
+- (IBAction)rename:(id)sender;
+
++ (void) confirmationWithXfer:(XFer*)x;
+
+@end