summaryrefslogtreecommitdiffabout
path: root/pumpkin/PumpKIN.h
Unidiff
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