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>
10
12
14{
15 Q_DISABLE_COPY_MOVE(QIOSFileEngineFactory)
16public:
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
28#endif
29
30 return {};
31 }
32};
33
35
36#endif // QIOSFILEENGINEFACTORY_H
\inmodule QtCore \reentrant
QIOSFileEngineFactory()=default
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...
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define Q_UNUSED(x)