Commit 5cde52ec authored by Martin Straka's avatar Martin Straka

Fixed document picker for older ios

parent 9edd261f
......@@ -87,6 +87,24 @@
}
}
- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url {
if (controller.documentPickerMode == UIDocumentPickerModeImport) {
NSLog(@"SELECTED FILE URL: %@", url);
QList<QUrl> qUrls;
// Convert NSURL on QUrl
QUrl tmpUrl = QUrl::fromNSURL(url);
qUrls.append(tmpUrl);
if (Q_NULLPTR != GlobInstcs::iOSHelperPtr) {
GlobInstcs::iOSHelperPtr->importFilesToAppInbox(qUrls);
}
} else if (controller.documentPickerMode == UIDocumentPickerModeExportToService) {
NSLog(@"STORAGE FILE URL: %@", url);
}
}
- (void)documentPickerWasCancelled:(UIDocumentPickerViewController *)controller {
Q_UNUSED(controller);
if (Q_NULLPTR != GlobInstcs::iOSHelperPtr) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment