Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qiosfileenginefactory.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QIOSFILEENGINEFACTORY_H
6#define QIOSFILEENGINEFACTORY_H
7
8#include <QtCore/qstandardpaths.h>
9#include <QtCore/private/qabstractfileengine_p.h>
11
13
15{
17public:
19
20 std::unique_ptr<QAbstractFileEngine> create(const QString &fileName) const
21 {
22 Q_CONSTINIT static QLatin1StringView assetsScheme("assets-library:");
23
24#ifndef Q_OS_TVOS
25 if (fileName.toLower().startsWith(assetsScheme))
26 return std::make_unique<QIOSFileEngineAssetsLibrary>(fileName);
27#else
28 Q_UNUSED(fileName);
29#endif
30
31 return {};
32 }
33};
34
35QT_END_NAMESPACE
36
37#endif // QIOSFILEENGINEFACTORY_H
std::unique_ptr< QAbstractFileEngine > create(const QString &fileName) const
If this file handler can handle fileName, this method creates a file engine and returns it wrapped in...
UIViewController * createImagePickerController(QIOSFileDialog *fileDialog) const override
Definition plugin.mm:23
Q_FORWARD_DECLARE_OBJC_CLASS(QT_MANGLE_NAMESPACE(RunLoopModeTracker))
Q_FORWARD_DECLARE_OBJC_CLASS(UIViewController)
#define QIosOptionalPluginInterface_iid