summaryrefslogtreecommitdiffabout
path: root/pumpkin/ConfirmRequest.h
blob: 5db6f2e5c4aa5f126258bb93c4eb07a2c9bd0ca8 (plain)
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

#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