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) (side-by-side diff)
tree45b7c863151341f687b74e40bffcbd7ab5468783 /pumpkin/PumpKIN.h
parent6e7e413ca364d79673e523c09767c18e7cff1bec (diff)
downloadpumpkin-osx/0.0.zip
pumpkin-osx/0.0.tar.gz
pumpkin-osx/0.0.tar.bz2
initial osx portosx/0.0
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'pumpkin/PumpKIN.h') (more/less context) (show 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 @@
+#import <Cocoa/Cocoa.h>
+#import "DaemonListener.h"
+#include <netinet/in.h>
+#import "XFersViewDatasource.h"
+
+enum {
+ onRRQGive=0, onRRQPrompt, onRRQDeny,
+ onWRQTake=0, onWRQPromptIfExists, onWRQPrompt, onWRQDeny
+};
+
+@interface PumpKIN : NSObject <NSApplicationDelegate> {
+ NSWindow *window;
+ NSTextView *logger;
+ DaemonListener *listener;
+ NSWindow *preferencesWindow;
+ NSUserDefaultsController *theDefaults;
+ NSMutableArray *xfers;
+ NSTableView *xfersView;
+ XFersViewDatasource *xvDatasource;
+ NSToolbar *toolbar;
+}
+
+@property (assign) IBOutlet NSWindow *window;
+@property (assign) IBOutlet NSTextView *logger;
+- (IBAction)showPreferences:(id)sender;
+@property (assign) IBOutlet NSWindow *preferencesWindow;
+@property (assign) IBOutlet NSUserDefaultsController *theDefaults;
+- (IBAction)pickTFTPFolder:(id)sender;
+- (IBAction)pickLogFile:(id)sender;
+@property (assign) IBOutlet NSTableView *xfersView;
+@property (readonly) BOOL hasSelectedXfer;
+@property (assign) IBOutlet NSToolbar *toolbar;
+- (IBAction)abortXfer:(id)sender;
+- (IBAction)getFile:(id)sender;
+- (IBAction)putFile:(id)sender;
+
++(void)initialize;
+
+-(void)log:(NSString*)fmt,...;
+-(void)registerXfer:(id)xfer;
+-(void)unregisterXfer:(id)xfer;
+-(void)updateXfers;
+-(BOOL)hasPeer:(struct sockaddr_in*)sin;
+
+-(void)tableViewSelectionDidChange:(NSNotification*)an;
+
+- (void)runBiportal:(char const**)arg;
+
+@end