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
qqmlpropertyresolver_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 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 QQMLPROPERTYRESOLVER_P_H
5#define QQMLPROPERTYRESOLVER_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/qqmlpropertycache_p.h>
20#include <private/qqmlrefcount_p.h>
21
23
25{
26 QQmlPropertyResolver(const QQmlPropertyCache::ConstPtr &cache)
27 : cache(cache)
28 {}
29
30 const QQmlPropertyData *property(int index) const
31 {
32 return cache->property(index);
33 }
34
35 enum RevisionCheck {
36 CheckRevision,
37 IgnoreRevision
38 };
39
40 const QQmlPropertyData *property(
41 const QString &name, bool *notInRevision = nullptr,
42 RevisionCheck check = CheckRevision) const;
43
44 // This code must match the semantics of QQmlPropertyPrivate::findSignalByName
45 const QQmlPropertyData *signal(
46 const QString &name, bool *notInRevision = nullptr,
47 RevisionCheck check = CheckRevision) const;
48
49 QQmlPropertyCache::ConstPtr cache;
50};
51
52QT_END_NAMESPACE
53
54#endif // QQMLPROPERTYRESOLVER_P_H