Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / editors / scapp / iPhone / FileBrowserViewController.h
bloba09452ed195843d6aa5f4d266664cb58e2a31772
1 //
2 // FileBrowserViewController.h
3 // iscsynth
4 //
5 // Created by Axel Balley on 26/10/08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
7 //
9 #import <UIKit/UIKit.h>
11 @class FileBrowserViewController;
13 @interface FileTransferController : UIViewController
15 FileBrowserViewController *browser;
16 NSNetService *service;
17 NSThread *thread;
18 int sock;
19 int run_thread;
21 IBOutlet UILabel *label;
22 IBOutlet UIProgressView *progress;
24 - (id) initWithNibName:(NSString *)name bundle:(NSBundle *)bundle browser:(FileBrowserViewController *)b;
25 - (void) close:(id)sender;
26 - (void) start;
27 - (void) stop;
28 - (void) threadProc:(id)arg;
29 - (void) updateLabel:(NSString *)string;
30 - (void) updateProgress:(NSNumber *)val;
32 @end
35 @interface FileBrowserViewController : UINavigationController
37 id target;
38 SEL selector;
40 @end
42 @interface FileBrowserPageViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
44 //FileTransferController *fileController;
46 NSArray *array;
47 NSString *path;
49 IBOutlet UITableView *table;
50 IBOutlet UIBarButtonItem *refreshButton;
53 - (id)init;
54 - (void) setPath:(NSString *)p;
55 - (void) refresh;
56 - (void) triggerRefresh:(id)sender;
57 - (void) flashScrollIndicators;
59 @end