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
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
23 QQmlAbstractUrlInterceptor() = default;
24 virtual ~QQmlAbstractUrlInterceptor() = default;
25 virtual QUrl intercept(const QUrl &path, DataType type) = 0;
26};
27
28QT_END_NAMESPACE
29#endif
void dropDestroyedQObject(const QString &name, QObject *destroyed)
void setNotifyIndex(int notifyIndex)
void setPropertyValue(int index, const QVariant &value)
void appendInstance(QObject *instance)
int notifyIndex() const
void appendPropertyValue(const QVariant &value)
QList< QPointer< QObject > > instances() const
int numPropertyValues() const
QVariant propertyValue(int index) const
static QObject * context_at(QQmlListProperty< QObject > *, qsizetype)
bool mustCaptureBindableProperty() const final
void expressionChanged() override
void init(const QQmlRefPointer< QQmlContextData > &, QV4::Function *runtimeFunction, QObject *)
QV4::ReturnedValue v4value(bool *isUndefined=nullptr)
void init(const QQmlRefPointer< QQmlContextData > &, const QString &, QObject *)
QVariant value(bool *isUndefined=nullptr)
static QQmlExpression * get(QQmlExpressionPrivate *expr)
static QQmlExpressionPrivate * get(QQmlExpression *expr)
QString expressionIdentifier() const override
~QQmlExpressionPrivate() override
static bool readObjectProperty(const QQmlRefPointer< QQmlContextData > &data, QObject *object, const QString &name, QVariant *target)