Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4
#ifndef QIOSFILEENGINEFACTORY_H
5
#define QIOSFILEENGINEFACTORY_H
6
7
#include <QtCore/qstandardpaths.h>
8
#include <QtCore/private/qabstractfileengine_p.h>
9
#include "
qiosfileengineassetslibrary.h
"
10
11
QT_BEGIN_NAMESPACE
12
13
class
QIOSFileEngineFactory
:
public
QAbstractFileEngineHandler
14
{
15
Q_DISABLE_COPY_MOVE(
QIOSFileEngineFactory
)
16
public
:
17
QIOSFileEngineFactory
() =
default
;
18
19
std::unique_ptr<QAbstractFileEngine>
create
(
const
QString
&
fileName
)
const
20
{
21
Q_CONSTINIT
static
QLatin1StringView
assetsScheme(
"assets-library:"
);
22
23
#ifndef Q_OS_TVOS
24
if
(
fileName
.toLower().startsWith(assetsScheme))
25
return
std::make_unique<QIOSFileEngineAssetsLibrary>(
fileName
);
26
#else
27
Q_UNUSED
(
fileName
);
28
#endif
29
30
return
{};
31
}
32
};
33
34
QT_END_NAMESPACE
35
36
#endif
// QIOSFILEENGINEFACTORY_H
QAbstractFileEngineHandler
\inmodule QtCore \reentrant
Definition
qabstractfileengine_p.h:193
QIOSFileEngineFactory
Definition
qiosfileenginefactory.h:14
QIOSFileEngineFactory::QIOSFileEngineFactory
QIOSFileEngineFactory()=default
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:19
QLatin1StringView
Definition
qlatin1stringview.h:32
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
qiosfileengineassetslibrary.h
Q_UNUSED
#define Q_UNUSED(x)
Definition
qtpreprocessorsupport.h:20
fileName
fileName
[0]
Definition
src_gui_dialogs_qfiledialog.cpp:5
qtbase
src
plugins
platforms
ios
optional
nsphotolibrarysupport
qiosfileenginefactory.h
Generated by
1.10.0