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
qfileselector.h
Go to the documentation of this file.
1// Copyright (C) 2013 BlackBerry Limited. All rights reserved.
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 QFILESELECTOR_H
6#define QFILESELECTOR_H
7
8#include <QtCore/QObject>
9#include <QtCore/QStringList>
10
11QT_BEGIN_NAMESPACE
12
13class QFileSelectorPrivate;
14class Q_CORE_EXPORT QFileSelector : public QObject
15{
16 Q_OBJECT
17public:
18 explicit QFileSelector(QObject *parent = nullptr);
19 ~QFileSelector();
20
21 QString select(const QString &filePath) const;
22 QUrl select(const QUrl &filePath) const;
23
24 QStringList extraSelectors() const;
25 void setExtraSelectors(const QStringList &list);
26
27 QStringList allSelectors() const;
28
29private:
30 Q_DECLARE_PRIVATE(QFileSelector)
31};
32
33QT_END_NAMESPACE
34
35#endif
\inmodule QtCore
static bool isLocalScheme(const QString &file)
static const char env_override[]
Q_GLOBAL_STATIC(QFileSelectorSharedData, sharedData)