summaryrefslogtreecommitdiffabout
path: root/pumpkin/PumpKIN.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/PumpKIN.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/PumpKIN.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pumpkin/PumpKIN.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/pumpkin/PumpKIN.h b/pumpkin/PumpKIN.h
new file mode 100644
index 0000000..d582c94
--- a/dev/null
+++ b/pumpkin/PumpKIN.h
@@ -0,0 +1,49 @@
1#import <Cocoa/Cocoa.h>
2#import "DaemonListener.h"
3#include <netinet/in.h>
4#import "XFersViewDatasource.h"
5
6enum {
7 onRRQGive=0, onRRQPrompt, onRRQDeny,
8 onWRQTake=0, onWRQPromptIfExists, onWRQPrompt, onWRQDeny
9};
10
11@interface PumpKIN : NSObject <NSApplicationDelegate> {
12 NSWindow *window;
13 NSTextView *logger;
14 DaemonListener *listener;
15 NSWindow *preferencesWindow;
16 NSUserDefaultsController *theDefaults;
17 NSMutableArray *xfers;
18 NSTableView *xfersView;
19 XFersViewDatasource *xvDatasource;
20 NSToolbar *toolbar;
21}
22
23@property (assign) IBOutlet NSWindow *window;
24@property (assign) IBOutlet NSTextView *logger;
25- (IBAction)showPreferences:(id)sender;
26@property (assign) IBOutlet NSWindow *preferencesWindow;
27@property (assign) IBOutlet NSUserDefaultsController *theDefaults;
28- (IBAction)pickTFTPFolder:(id)sender;
29- (IBAction)pickLogFile:(id)sender;
30@property (assign) IBOutlet NSTableView *xfersView;
31@property (readonly) BOOL hasSelectedXfer;
32@property (assign) IBOutlet NSToolbar *toolbar;
33- (IBAction)abortXfer:(id)sender;
34- (IBAction)getFile:(id)sender;
35- (IBAction)putFile:(id)sender;
36
37+(void)initialize;
38
39-(void)log:(NSString*)fmt,...;
40-(void)registerXfer:(id)xfer;
41-(void)unregisterXfer:(id)xfer;
42-(void)updateXfers;
43-(BOOL)hasPeer:(struct sockaddr_in*)sin;
44
45-(void)tableViewSelectionDidChange:(NSNotification*)an;
46
47- (void)runBiportal:(char const**)arg;
48
49@end