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
4#ifndef QFILESELECTOR_H
5#define QFILESELECTOR_H
6
7#include <QtCore/QObject>
8#include <QtCore/QStringList>
9
10QT_BEGIN_NAMESPACE
11
12class QFileSelectorPrivate;
13class Q_CORE_EXPORT QFileSelector : public QObject
14{
15 Q_OBJECT
16public:
17 explicit QFileSelector(QObject *parent = nullptr);
18 ~QFileSelector();
19
20 QString select(const QString &filePath) const;
21 QUrl select(const QUrl &filePath) const;
22
23 QStringList extraSelectors() const;
24 void setExtraSelectors(const QStringList &list);
25
26 QStringList allSelectors() const;
27
28private:
29 Q_DECLARE_PRIVATE(QFileSelector)
30};
31
32QT_END_NAMESPACE
33
34#endif
35

source code of qtbase/src/corelib/io/qfileselector.h