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_P_H
6#define QFILESELECTOR_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/QString>
20#include <QtCore/QFileSelector>
21#include <private/qobject_p.h>
22
23QT_BEGIN_NAMESPACE
24
25struct QFileSelectorSharedData //Not QSharedData because currently is just a global store
26{
27 QStringList staticSelectors;
28 QStringList preloadedStatics;
29};
30
31class Q_CORE_EXPORT QFileSelectorPrivate : QObjectPrivate //Exported for use in other modules (like QtGui)
32{
33 Q_DECLARE_PUBLIC(QFileSelector)
34public:
35 static void updateSelectors();
36 static QStringList platformSelectors();
37 static void addStatics(const QStringList &); //For loading GUI statics from other Qt modules
38 static QString selectionHelper(const QString &path, const QString &fileName,
39 const QStringList &selectors, QChar indicator = u'+');
40 QFileSelectorPrivate();
41 QString select(const QString &filePath) const;
42
43 QStringList extras;
44};
45
46QT_END_NAMESPACE
47
48#endif
49
50

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