-rw-r--r-- | pumpkin/ConfirmRequest.h | 38 |
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 |