![]() |
Qt 6.x
The Qt SDK
|
#include <qqmlnotifier_p.h>
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().
|
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().
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().
|
inline |
Definition at line 157 of file qqmlnotifier_p.h.
References disconnect(), notifier, and setSender().
|
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().
|
inline |
Definition at line 137 of file qqmlnotifier_p.h.
Referenced by QQmlData::addNotify(), and QQmlPropertyCapture::captureProperty().
|
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().
|
inline |
Definition at line 152 of file qqmlnotifier_p.h.
References notifier, and senderAsNotifier().
|
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().
|
inline |
Definition at line 236 of file qqmlnotifier_p.h.
References isNotifying().
Referenced by senderAsNotifier(), senderAsObject(), and setSender().
|
inline |
Definition at line 255 of file qqmlnotifier_p.h.
References sender().
Referenced by isConnected().
|
inline |
Definition at line 250 of file qqmlnotifier_p.h.
References sender().
Referenced by disconnect(), and isConnected().
Definition at line 241 of file qqmlnotifier_p.h.
References isNotifying(), and sender().
Referenced by QQmlNotifier::~QQmlNotifier(), connect(), connect(), and disconnect().
|
inline |
Definition at line 79 of file qqmlnotifier_p.h.
Referenced by QQmlPropertyPrivate::signalExpression(), and QQmlPropertyPrivate::takeSignalExpression().
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.