1// Copyright (C) 2016 The Qt Company Ltd.
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 QQMLPROPERTYVALUEINTERCEPTOR_P_H
5#define QQMLPROPERTYVALUEINTERCEPTOR_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 <private/qtqmlglobal_p.h>
19#include <private/qqmlpropertyindex_p.h>
20#include <QtCore/qobject.h>
21#include <QtCore/qproperty.h>
22
23QT_BEGIN_NAMESPACE
24
25class QQmlProperty;
26class Q_QML_PRIVATE_EXPORT QQmlPropertyValueInterceptor
27{
28public:
29 QQmlPropertyValueInterceptor();
30 virtual ~QQmlPropertyValueInterceptor();
31 virtual void setTarget(const QQmlProperty &property) = 0;
32 virtual void write(const QVariant &value) = 0;
33 virtual bool bindable(QUntypedBindable *bindable, QUntypedBindable target);
34
35private:
36 friend class QQmlInterceptorMetaObject;
37
38 QQmlPropertyIndex m_propertyIndex;
39 QQmlPropertyValueInterceptor *m_next;
40};
41
42#define QQmlPropertyValueInterceptor_iid "org.qt-project.Qt.QQmlPropertyValueInterceptor"
43
44Q_DECLARE_INTERFACE(QQmlPropertyValueInterceptor, QQmlPropertyValueInterceptor_iid)
45
46QT_END_NAMESPACE
47
48#endif // QQMLPROPERTYVALUEINTERCEPTOR_P_H
49

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