Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QQMLABSTRACTURLINTERCEPTOR_H
5#define QQMLABSTRACTURLINTERCEPTOR_H
6
7#include <QtQml/qtqmlglobal.h>
8
10
11class QUrl;
12
14{
15public:
16 enum DataType { //Matches QQmlDataBlob::Type
17 QmlFile = 0,
18 JavaScriptFile = 1,
19 QmldirFile = 2,
20 UrlString = 0x1000
21 };
22
24 virtual ~QQmlAbstractUrlInterceptor() = default;
25 virtual QUrl intercept(const QUrl &path, DataType type) = 0;
26};
27
29#endif
virtual QUrl intercept(const QUrl &path, DataType type)=0
A pure virtual function where you can intercept the url.
DataType
Specifies where URL interception is taking place.
QQmlAbstractUrlInterceptor()=default
Constructor for QQmlAbstractUrlInterceptor.
virtual ~QQmlAbstractUrlInterceptor()=default
Destructor for QQmlAbstractUrlInterceptor.
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
GLenum type
GLsizei const GLchar *const * path