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