clean build file
This commit is contained in:
parent
d4056381da
commit
9aab2a4431
58 changed files with 3706 additions and 55 deletions
45
client/platforms/macos/ios_controller_wrapper.mm
Normal file
45
client/platforms/macos/ios_controller_wrapper.mm
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
#import "ios_controller_wrapper.h"
|
||||
#include "ios_controller.h"
|
||||
|
||||
@implementation IosControllerWrapper
|
||||
|
||||
- (instancetype)initWithCppController:(IosController *)controller {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
cppController = controller;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)vpnStatusDidChange:(NSNotification *)notification {
|
||||
|
||||
NETunnelProviderSession *session = (NETunnelProviderSession *)notification.object;
|
||||
|
||||
if (session ) {
|
||||
cppController->vpnStatusDidChange(session);
|
||||
}
|
||||
}
|
||||
|
||||
- (void) vpnConfigurationDidChange:(NSNotification *)notification {
|
||||
// cppController->vpnStatusDidChange(notification);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
//@implementation DocumentPickerDelegate
|
||||
|
||||
//- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentsAtURLs:(NSArray<NSURL *> *)urls {
|
||||
// for (NSURL *url in urls) {
|
||||
// if (self.documentPickerClosedCallback) {
|
||||
// self.documentPickerClosedCallback([url path]);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
//- (void)documentPickerWasCancelled:(UIDocumentPickerViewController *)controller {
|
||||
// if (self.documentPickerClosedCallback) {
|
||||
// self.documentPickerClosedCallback(nil);
|
||||
// }
|
||||
//}
|
||||
|
||||
//@end
|
||||
Loading…
Add table
Add a link
Reference in a new issue