Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
>
10
#
include
"qiosfileengineassetslibrary.h"
11
12
QT_BEGIN_NAMESPACE
13
14
class
QIOSFileEngineFactory
:
public
QAbstractFileEngineHandler
15
{
16
Q_DISABLE_COPY_MOVE
(
QIOSFileEngineFactory
)
17
public
:
18
QIOSFileEngineFactory
() =
default
;
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
35
QT_END_NAMESPACE
36
37
#
endif
// QIOSFILEENGINEFACTORY_H
QIOSFileEngineFactory
Definition
qiosfileenginefactory.h:15
QIOSFileEngineFactory::create
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...
Definition
qiosfileenginefactory.h:20
QIosOptionalPlugin_NSPhotoLibrary
Definition
plugin.mm:14
QIosOptionalPlugin_NSPhotoLibrary::~QIosOptionalPlugin_NSPhotoLibrary
~QIosOptionalPlugin_NSPhotoLibrary()
Definition
plugin.mm:21
QIosOptionalPlugin_NSPhotoLibrary::createImagePickerController
UIViewController * createImagePickerController(QIOSFileDialog *fileDialog) const override
Definition
plugin.mm:23
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_FORWARD_DECLARE_OBJC_CLASS
Q_FORWARD_DECLARE_OBJC_CLASS(QT_MANGLE_NAMESPACE(RunLoopModeTracker))
Q_FORWARD_DECLARE_OBJC_CLASS
Q_FORWARD_DECLARE_OBJC_CLASS(UIViewController)
QIosOptionalPluginInterface_iid
#define QIosOptionalPluginInterface_iid
Definition
qiosoptionalplugininterface.h:16
qtbase
src
plugins
platforms
ios
optional
nsphotolibrarysupport
qiosfileenginefactory.h
Generated on
for Qt by
1.18.0