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
qqmlabstracturlinterceptor.h
Go to the documentation of this file.
1// Copyright (C) 2016 Research In Motion.
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
4
5#ifndef QQMLABSTRACTURLINTERCEPTOR_H
6#define QQMLABSTRACTURLINTERCEPTOR_H
7
8#include <QtQml/qtqmlglobal.h>
9
10QT_BEGIN_NAMESPACE
11
12class QUrl;
13
15{
16public:
17 enum DataType { //Matches QQmlDataBlob::Type
18 QmlFile = 0,
19 JavaScriptFile = 1,
20 QmldirFile = 2,
21 UrlString = 0x1000
22 };
23
24 QQmlAbstractUrlInterceptor() = default;
25 virtual ~QQmlAbstractUrlInterceptor() = default;
26 virtual QUrl intercept(const QUrl &path, DataType type) = 0;
27};
28
29QT_END_NAMESPACE
30#endif