summaryrefslogtreecommitdiffabout
path: root/pumpkin/ARequest.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/ARequest.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/ARequest.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pumpkin/ARequest.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/pumpkin/ARequest.h b/pumpkin/ARequest.h
new file mode 100644
index 0000000..232dcf8
--- a/dev/null
+++ b/pumpkin/ARequest.h
@@ -0,0 +1,47 @@
1#import <Cocoa/Cocoa.h>
2
3@interface ARequest : NSWindowController {
4 BOOL requestIsGet;
5
6 CFHostRef cfhost;
7
8 NSString *localFile;
9 NSString *remoteHost;
10 NSNumber *remotePort;
11 NSString *remoteFile;
12 NSString *xferType;
13 NSNumber *blockSize;
14 NSNumber *timeout;
15
16 NSTextField *remoteHostBox;
17 BOOL doTouchMe;
18 NSString *statusLabel;
19 NSString *errorLabel;
20}
21
22@property BOOL requestIsGet;
23@property BOOL doTouchMe;
24@property (copy) NSString *statusLabel;
25@property (copy) NSString *errorLabel;
26
27@property (copy) NSString *localFile;
28@property (copy) NSString *remoteHost;
29@property (copy) NSNumber *remotePort;
30@property (copy) NSString *remoteFile;
31@property (copy) NSString *xferType;
32@property (copy) NSNumber *blockSize;
33@property (copy) NSNumber *timeout;
34
35@property (assign) IBOutlet NSTextField *remoteHostBox;
36
37- (IBAction)startXfer:(id)sender;
38- (IBAction)pickFile:(id)sender;
39
40-(void)hostCallbackWithHost:(CFHostRef)h info:(CFHostInfoType)hi andError:(const CFStreamError*)e;
41
42+(void)getFile;
43+(void)putFile;
44
45-(ARequest*)initWithGet:(BOOL)gr;
46
47@end