![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qqmlnotifier_p.h>
Public Types | |
enum | Callback { None = 0 , QQmlBoundSignal = 1 , QQmlJavaScriptExpressionGuard = 2 , QQmlVMEMetaObjectEndpoint = 3 , QQmlUnbindableToUnbindableGuard = 4 , QQmlUnbindableToBindableGuard = 5 , QQmlDirtyReferenceObject = 6 } |
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 | |
QQmlUnbindableToUnbindableGuard | |
QQmlUnbindableToBindableGuard | |
QQmlDirtyReferenceObject |
Definition at line 54 of file qqmlnotifier_p.h.
|
inline |
Definition at line 129 of file qqmlnotifier_p.h.
References QQmlNotifierEndpoint().
Referenced by QQmlNotifierEndpoint().
|
inline |
Definition at line 134 of file qqmlnotifier_p.h.
References disconnect().
|
inline |
Cancel any notifies that are in progress.
Definition at line 228 of file qqmlnotifier_p.h.
References isNotifying().
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 86 of file qqmlnotifier.cpp.
References disconnect().
|
inline |
Definition at line 159 of file qqmlnotifier_p.h.
|
inline |
Definition at line 170 of file qqmlnotifier_p.h.
Referenced by ~QQmlNotifierEndpoint(), and connect().
|
inline |
Definition at line 139 of file qqmlnotifier_p.h.
|
inline |
sourceSignal MUST be in the signal index range (see QObjectPrivate::signalIndex()). This is different from QMetaMethod::methodIndex().
Definition at line 148 of file qqmlnotifier_p.h.
|
inline |
Definition at line 154 of file qqmlnotifier_p.h.
|
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 201 of file qqmlnotifier_p.h.
Referenced by cancelNotify().
|
inline |
Definition at line 238 of file qqmlnotifier_p.h.
|
inline |
Definition at line 257 of file qqmlnotifier_p.h.
|
inline |
Definition at line 252 of file qqmlnotifier_p.h.
Definition at line 243 of file qqmlnotifier_p.h.
|
inline |
Definition at line 81 of file qqmlnotifier_p.h.
Definition at line 206 of file qqmlnotifier_p.h.
Definition at line 217 of file qqmlnotifier_p.h.
|
friend |
Definition at line 90 of file qqmlnotifier_p.h.
|
friend |
Definition at line 91 of file qqmlnotifier_p.h.