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
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
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
Combined button and popup list for selecting options.
static bool readObjectProperty(const QQmlRefPointer< QQmlContextData > &data, QObject *object, const QString &name, QVariant *target)
static QObject * objectForNameInQQmlContextData(const QQmlRefPointer< QQmlContextData > &data, const QQmlContextPrivate *d, const QString &name)