iOS: Add initial support for upload via browser

This only starts the HTTP server on 127.0.0.1 for now and does nothing
else yet.
This commit is contained in:
Jonathan Schleifer 2018-01-11 23:49:18 +01:00
parent e5b90b856a
commit 02ed98041d
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
7 changed files with 142 additions and 7 deletions

View file

@ -21,14 +21,21 @@
*/
#import <UIKit/UIKit.h>
#import <ObjFW/ObjFW.h>
#import "AddSiteController.h"
#import "HTTPServerDelegate.h"
@interface SelectKeyFileController: UITableViewController <UITableViewDelegate,
UITableViewDataSource>
{
NSArray<NSString *> *_keyFiles;
OFHTTPServer *_HTTPServer;
HTTPServerDelegate *_HTTPServerDelegate;
OFThread *_HTTPServerThread;
}
@property (retain) AddSiteController *addSiteController;
- (IBAction)upload:(id)sender;
@end