1// Copyright (C) 2016 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 QQMLFILESELECTOR_P_H
5#define QQMLFILESELECTOR_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 "qqmlfileselector.h"
19#include <QSet>
20#include <QQmlAbstractUrlInterceptor>
21#include <private/qobject_p.h>
22#include <private/qtqmlglobal_p.h>
23
24QT_BEGIN_NAMESPACE
25
26class QFileSelector;
27class QQmlFileSelectorInterceptor;
28class Q_QML_PRIVATE_EXPORT QQmlFileSelectorPrivate : public QObjectPrivate
29{
30 Q_DECLARE_PUBLIC(QQmlFileSelector)
31public:
32 QQmlFileSelectorPrivate();
33 ~QQmlFileSelectorPrivate();
34
35 QFileSelector* selector;
36 QPointer<QQmlEngine> engine;
37 bool ownSelector;
38 QScopedPointer<QQmlFileSelectorInterceptor> myInstance;
39};
40
41class Q_QML_PRIVATE_EXPORT QQmlFileSelectorInterceptor : public QQmlAbstractUrlInterceptor
42{
43public:
44 QQmlFileSelectorInterceptor(QQmlFileSelectorPrivate* pd);
45 QQmlFileSelectorPrivate* d;
46protected:
47 QUrl intercept(const QUrl &path, DataType type) override;
48};
49
50QT_END_NAMESPACE
51
52#endif
53

source code of qtdeclarative/src/qml/qml/qqmlfileselector_p.h