Commit 2d3096d7 authored by Martin Straka's avatar Martin Straka

Disabled possibility to import ZFOs from selected folder on iOS

parent df187377
......@@ -95,13 +95,27 @@ Component {
"zfoDir": function callZfoDir() {
clearInfo()
if (iOS) {
iOSHelper.openDocumentPickerControllerForImport(IosImportAction.IMPORT_ZFO_DIR, ["cz.nic.mobile-datovka.zfo"])
/* Import ZFOs from selected directory on iOS is not used now because the UIDocumentPickerViewController still has not support for this. */
iOSHelper.openDocumentPickerControllerForImport(IosImportAction.IMPORT_ZFO_DIR, ["public.directory","public.folder"])
} else {
fileDialogue.raise(qsTr("Select import directory"), ["*.*"], false, "")
}
}
}
/* Import ZFO list model for iOS only. Import ZFOs from selected directory on iOS is not allowed now. */
ListModel {
id: importMenuListModeliOS
ListElement {
image: "qrc:/ui/datovka-file-zfo.svg"
showEntry: true
showNext: true
name: qsTr("Import selected ZFO files")
funcName: "zfoFile"
}
}
/* Import ZFO list model for other platforms. */
ListModel {
id: importMenuListModel
ListElement {
......@@ -166,7 +180,7 @@ Component {
spacing: 1
opacity: 1
funcArr: funcs
model: importMenuListModel
model: (iOS) ? importMenuListModeliOS : importMenuListModel
}
Text {
text: " "
......
......@@ -210,7 +210,11 @@ void IosHelper::importFilesToAppInbox(const QList<QUrl> &selectedFileUrls)
emit certFilesSelectedSig(filePaths);
break;
case IosImportAction::IMPORT_ZFO_DIR:
// TODO
/*
* TODO - Import ZFOs from selected directory on iOS is not used
* now because the UIDocumentPickerViewController still has not
* support for this.
*/
break;
default: break;
}
......@@ -259,10 +263,10 @@ QString IosHelper::moveFileToTargetPath(const QUrl &sourceFileUrl,
return targetFileUrl.toString();
}
return QString();
#else /* !Q_OS_IOS */
Q_UNUSED(sourceFileUrl);
Q_UNUSED(targetPath);
#endif
return QString();
}
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