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 QQMLVALUETYPEPROXYBINDING_P_H |
5 | #define QQMLVALUETYPEPROXYBINDING_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/qqmlabstractbinding_p.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class Q_AUTOTEST_EXPORT QQmlValueTypeProxyBinding : public QQmlAbstractBinding |
23 | { |
24 | public: |
25 | QQmlValueTypeProxyBinding(QObject *o, QQmlPropertyIndex coreIndex); |
26 | |
27 | QQmlAbstractBinding *subBindings() const; |
28 | QQmlAbstractBinding *binding(QQmlPropertyIndex targetPropertyIndex) const; |
29 | void removeBindings(quint32 mask); |
30 | |
31 | void setEnabled(bool, QQmlPropertyData::WriteFlags) override; |
32 | Kind kind() const final { return QQmlAbstractBinding::ValueTypeProxy; } |
33 | |
34 | protected: |
35 | ~QQmlValueTypeProxyBinding(); |
36 | |
37 | private: |
38 | friend class QQmlAbstractBinding; |
39 | Ptr m_bindings; |
40 | }; |
41 | |
42 | QT_END_NAMESPACE |
43 | |
44 | #endif // QQMLVALUETYPEPROXYBINDING_P_H |
45 | |