| 1 | // Copyright (C) 2023 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
| 3 | |
| 4 | #ifndef QQMLSACONSTANTS_H |
| 5 | #define QQMLSACONSTANTS_H |
| 6 | |
| 7 | #include <QtCore/qtconfigmacros.h> |
| 8 | |
| 9 | QT_BEGIN_NAMESPACE |
| 10 | |
| 11 | namespace QQmlSA { |
| 12 | |
| 13 | enum class BindingType : unsigned int { |
| 14 | Invalid, |
| 15 | BoolLiteral, |
| 16 | NumberLiteral, |
| 17 | StringLiteral, |
| 18 | RegExpLiteral, |
| 19 | Null, |
| 20 | Translation, |
| 21 | TranslationById, |
| 22 | Script, |
| 23 | Object, |
| 24 | Interceptor, |
| 25 | ValueSource, |
| 26 | AttachedProperty, |
| 27 | GroupProperty, |
| 28 | }; |
| 29 | |
| 30 | enum class ScriptBindingKind : unsigned int { |
| 31 | Invalid, |
| 32 | PropertyBinding, // property int p: 1 + 1 |
| 33 | SignalHandler, // onSignal: { ... } |
| 34 | ChangeHandler, // onXChanged: { ... } |
| 35 | }; |
| 36 | |
| 37 | enum class ScopeType { |
| 38 | JSFunctionScope, |
| 39 | JSLexicalScope, |
| 40 | QMLScope, |
| 41 | GroupedPropertyScope, |
| 42 | AttachedPropertyScope, |
| 43 | EnumScope |
| 44 | }; |
| 45 | |
| 46 | } // namespace QQmlSA |
| 47 | |
| 48 | QT_END_NAMESPACE |
| 49 | |
| 50 | #endif // QQMLSACONSTANTS_H |
| 51 | |