![]() |
Qt 6.x
The Qt SDK
|
#include <qqmlnotifier_p.h>
Inheritance diagram for QQmlNotifierEndpoint:
Collaboration diagram for QQmlNotifierEndpoint:Public Types | |
| enum | Callback { None = 0 , QQmlBoundSignal = 1 , QQmlJavaScriptExpressionGuard = 2 , QQmlVMEMetaObjectEndpoint = 3 , QQmlPropertyGuard = 4 } |
Public Member Functions | |
| QQmlNotifierEndpoint (Callback callback) | |
| ~QQmlNotifierEndpoint () | |
| bool | isConnected () const |
| bool | isConnected (QObject *source, int sourceSignal) const |
| bool | isConnected (QQmlNotifier *) const |
| void | connect (QObject *source, int sourceSignal, QQmlEngine *engine, bool doNotify=true) |
| void | connect (QQmlNotifier *) |
| void | disconnect () |
| bool | isNotifying () const |
| Returns true if a notify is in progress. | |
| void | startNotifying (qintptr *originalSenderPtr) |
| void | stopNotifying (qintptr *originalSenderPtr) |
| void | cancelNotify () |
| Cancel any notifies that are in progress. | |
| int | signalIndex () const |
| qintptr | sender () const |
| void | setSender (qintptr sender) |
| QObject * | senderAsObject () const |
| QQmlNotifier * | senderAsNotifier () const |
Friends | |
| class | QQmlData |
| class | QQmlNotifier |
Definition at line 45 of file qqmlnotifier_p.h.
| Enumerator | |
|---|---|
| None | |
| QQmlBoundSignal | |
| QQmlJavaScriptExpressionGuard | |
| QQmlVMEMetaObjectEndpoint | |
| QQmlPropertyGuard | |
Definition at line 54 of file qqmlnotifier_p.h.
|
inline |
Definition at line 127 of file qqmlnotifier_p.h.
|
inline |
Definition at line 132 of file qqmlnotifier_p.h.
References disconnect().
Here is the call graph for this function:
|
inline |
Cancel any notifies that are in progress.
Definition at line 226 of file qqmlnotifier_p.h.
References isNotifying(), ptr(), and Q_ASSERT.
Referenced by QQmlPropertyCapture::captureProperty().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQmlNotifierEndpoint::connect | ( | QObject * | source, |
| int | sourceSignal, | ||
| QQmlEngine * | engine, | ||
| bool | doNotify = true |
||
| ) |
sourceSignal MUST be in the signal index range (see QObjectPrivate::signalIndex()). This is different from QMetaMethod::methodIndex().
Definition at line 82 of file qqmlnotifier.cpp.
References QQmlData::addNotify(), disconnect(), doNotify(), engine, QQmlPropertyPrivate::flushSignal(), QObjectPrivate::get(), QQmlData::get(), QString::left(), QBasicAtomicPointer< X >::loadRelaxed(), priv(), Q_ASSERT, qFatal, qPrintable, setSender(), QMetaObjectPrivate::signal(), QString::size(), and QObjectPrivate::threadData.
Referenced by QQmlBoundSignal::QQmlBoundSignal(), QQmlVMEMetaObject::connectAlias(), and QQmlVMEMetaObjectEndpoint::tryConnect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 157 of file qqmlnotifier_p.h.
References disconnect(), notifier, and setSender().
Here is the call graph for this function:
|
inline |
Definition at line 168 of file qqmlnotifier_p.h.
References QObjectPrivate::get(), mo, priv(), Q_ASSERT, senderAsObject(), setSender(), and QMetaObjectPrivate::signal().
Referenced by ~QQmlNotifierEndpoint(), connect(), connect(), and QQmlData::disconnectNotifiers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 137 of file qqmlnotifier_p.h.
Referenced by QQmlData::addNotify(), and QQmlPropertyCapture::captureProperty().
Here is the caller graph for this function:
|
inline |
sourceSignal MUST be in the signal index range (see QObjectPrivate::signalIndex()). This is different from QMetaMethod::methodIndex().
Definition at line 146 of file qqmlnotifier_p.h.
References senderAsObject().
Here is the call graph for this function:
|
inline |
Definition at line 152 of file qqmlnotifier_p.h.
References notifier, and senderAsNotifier().
Here is the call graph for this function:
|
inline |
Returns true if a notify is in progress.
This means that the signal or QQmlNotifier that this endpoing is connected to has been triggered, but this endpoint's callback has not yet been called.
An in progress notify can be cancelled by calling cancelNotify.
Definition at line 199 of file qqmlnotifier_p.h.
Referenced by cancelNotify(), QQmlData::destroyed(), sender(), and setSender().
Here is the caller graph for this function:
|
inline |
Definition at line 236 of file qqmlnotifier_p.h.
References isNotifying().
Referenced by senderAsNotifier(), senderAsObject(), and setSender().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 255 of file qqmlnotifier_p.h.
References sender().
Referenced by isConnected().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 250 of file qqmlnotifier_p.h.
References sender().
Referenced by disconnect(), and isConnected().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 241 of file qqmlnotifier_p.h.
References isNotifying(), and sender().
Referenced by QQmlNotifier::~QQmlNotifier(), connect(), connect(), and disconnect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 79 of file qqmlnotifier_p.h.
Referenced by QQmlPropertyPrivate::signalExpression(), and QQmlPropertyPrivate::takeSignalExpression().
Here is the caller graph for this function:Definition at line 204 of file qqmlnotifier_p.h.
References Q_ASSERT.
Definition at line 215 of file qqmlnotifier_p.h.
References Q_ASSERT.
|
friend |
Definition at line 88 of file qqmlnotifier_p.h.
|
friend |
Definition at line 89 of file qqmlnotifier_p.h.