![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qcocoaeventdispatcher.h>
Static Public Member Functions | |
static void | runLoopTimerCallback (CFRunLoopTimerRef, void *info) |
static void | activateTimersSourceCallback (void *info) |
static void | postedEventsSourceCallback (void *info) |
static void | waitingObserverCallback (CFRunLoopObserverRef observer, CFRunLoopActivity activity, void *info) |
![]() | |
static int | allocateTimerId () |
static void | releaseTimerId (int id) |
static void | releaseTimerId (Qt::TimerId id) |
static QAbstractEventDispatcherPrivate * | get (QAbstractEventDispatcher *o) |
static const QAbstractEventDispatcherPrivate * | get (const QAbstractEventDispatcher *o) |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1, typename Func2> | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1, typename Func2> | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Additional Inherited Members | |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Definition at line 74 of file qcocoaeventdispatcher.h.
QCocoaEventDispatcherPrivate::QCocoaEventDispatcherPrivate | ( | ) |
Definition at line 752 of file qcocoaeventdispatcher.mm.
References blockSendPostedEvents, cleanupModalSessionsNeeded, currentExecIsNSAppRun, currentModalSessionCached, interrupt, lastSerial, and nsAppRunCalledByQt.
|
overridedefault |
Definition at line 56 of file qcocoaeventdispatcher.mm.
References initializingNSApplication, maybeCancelWaitForMoreEvents(), and processTimers().
Referenced by QCocoaEventDispatcher::QCocoaEventDispatcher().
Definition at line 694 of file qcocoaeventdispatcher.mm.
References currentModalSessionCached.
void QCocoaEventDispatcherPrivate::cancelWaitForMoreEvents | ( | ) |
Definition at line 897 of file qcocoaeventdispatcher.mm.
Referenced by maybeCancelWaitForMoreEvents(), and processPostedEvents().
void QCocoaEventDispatcherPrivate::cleanupModalSessions | ( | ) |
Definition at line 657 of file qcocoaeventdispatcher.mm.
References cleanupModalSessionsNeeded, currentModalSessionCached, and _QCocoaModalSessionInfo::session.
Referenced by processPostedEvents().
NSModalSession QCocoaEventDispatcherPrivate::currentModalSession | ( | ) |
Definition at line 601 of file qcocoaeventdispatcher.mm.
References blockSendPostedEvents, cleanupModalSessionsNeeded, currentModalSessionCached, ensureNSAppInitialized(), and _QCocoaModalSessionInfo::session.
Definition at line 722 of file qcocoaeventdispatcher.mm.
References cleanupModalSessionsNeeded, and currentModalSessionCached.
void QCocoaEventDispatcherPrivate::ensureNSAppInitialized | ( | ) |
Definition at line 536 of file qcocoaeventdispatcher.mm.
References initializingNSApplication, and nsAppRunCalledByQt.
Referenced by currentModalSession().
bool QCocoaEventDispatcherPrivate::hasModalSession | ( | ) | const |
Definition at line 652 of file qcocoaeventdispatcher.mm.
void QCocoaEventDispatcherPrivate::maybeCancelWaitForMoreEvents | ( | ) |
Definition at line 907 of file qcocoaeventdispatcher.mm.
References cancelWaitForMoreEvents().
Referenced by activateTimersSourceCallback(), postedEventsSourceCallback(), and runLoopTimerCallback().
void QCocoaEventDispatcherPrivate::maybeStartCFRunLoopTimer | ( | ) |
Definition at line 77 of file qcocoaeventdispatcher.mm.
Referenced by processTimers().
void QCocoaEventDispatcherPrivate::maybeStopCFRunLoopTimer | ( | ) |
Definition at line 131 of file qcocoaeventdispatcher.mm.
Definition at line 876 of file qcocoaeventdispatcher.mm.
References initializingNSApplication, maybeCancelWaitForMoreEvents(), processPostedEvents(), and sendQueuedUserInputEvents().
Referenced by QCocoaEventDispatcher::QCocoaEventDispatcher().
void QCocoaEventDispatcherPrivate::processPostedEvents | ( | ) |
Definition at line 840 of file qcocoaeventdispatcher.mm.
References blockSendPostedEvents, cancelWaitForMoreEvents(), cleanupModalSessions(), cleanupModalSessionsNeeded, currentExecIsNSAppRun, currentModalSessionCached, lastSerial, and temporarilyStopAllModalSessions().
Referenced by postedEventsSourceCallback().
bool QCocoaEventDispatcherPrivate::processTimers | ( | ) |
Definition at line 70 of file qcocoaeventdispatcher.mm.
References maybeStartCFRunLoopTimer().
Referenced by activateTimersSourceCallback().
Definition at line 45 of file qcocoaeventdispatcher.mm.
References maybeCancelWaitForMoreEvents().
bool QCocoaEventDispatcherPrivate::sendQueuedUserInputEvents | ( | ) |
Definition at line 823 of file qcocoaeventdispatcher.mm.
Referenced by postedEventsSourceCallback().
void QCocoaEventDispatcherPrivate::temporarilyStopAllModalSessions | ( | ) |
Definition at line 576 of file qcocoaeventdispatcher.mm.
References currentModalSessionCached, and _QCocoaModalSessionInfo::session.
Referenced by processPostedEvents().
|
static |
Definition at line 814 of file qcocoaeventdispatcher.mm.
CFRunLoopSourceRef QCocoaEventDispatcherPrivate::activateTimersSourceRef |
Definition at line 87 of file qcocoaeventdispatcher.h.
bool QCocoaEventDispatcherPrivate::blockSendPostedEvents |
Definition at line 98 of file qcocoaeventdispatcher.h.
Referenced by QCocoaEventDispatcherPrivate(), currentModalSession(), and processPostedEvents().
QCFSocketNotifier QCocoaEventDispatcherPrivate::cfSocketNotifier |
Definition at line 118 of file qcocoaeventdispatcher.h.
bool QCocoaEventDispatcherPrivate::cleanupModalSessionsNeeded |
Definition at line 104 of file qcocoaeventdispatcher.h.
Referenced by QCocoaEventDispatcherPrivate(), cleanupModalSessions(), currentModalSession(), endModalSession(), and processPostedEvents().
QStack<QCocoaModalSessionInfo> QCocoaEventDispatcherPrivate::cocoaModalSessionStack |
Definition at line 100 of file qcocoaeventdispatcher.h.
bool QCocoaEventDispatcherPrivate::currentExecIsNSAppRun |
Definition at line 101 of file qcocoaeventdispatcher.h.
Referenced by QCocoaEventDispatcherPrivate(), and processPostedEvents().
NSModalSession QCocoaEventDispatcherPrivate::currentModalSessionCached |
Definition at line 106 of file qcocoaeventdispatcher.h.
Referenced by QCocoaEventDispatcherPrivate(), beginModalSession(), cleanupModalSessions(), currentModalSession(), endModalSession(), processPostedEvents(), and temporarilyStopAllModalSessions().
bool QCocoaEventDispatcherPrivate::initializingNSApplication = false |
Definition at line 103 of file qcocoaeventdispatcher.h.
Referenced by activateTimersSourceCallback(), ensureNSAppInitialized(), and postedEventsSourceCallback().
bool QCocoaEventDispatcherPrivate::interrupt |
Definition at line 124 of file qcocoaeventdispatcher.h.
Referenced by QCocoaEventDispatcherPrivate(), and QCocoaEventDispatcher::clearCurrentThreadCocoaEventDispatcherInterruptFlag().
int QCocoaEventDispatcherPrivate::lastSerial |
Definition at line 123 of file qcocoaeventdispatcher.h.
Referenced by QCocoaEventDispatcherPrivate(), and processPostedEvents().
bool QCocoaEventDispatcherPrivate::nsAppRunCalledByQt |
Definition at line 102 of file qcocoaeventdispatcher.h.
Referenced by QCocoaEventDispatcherPrivate(), and ensureNSAppInitialized().
CFRunLoopSourceRef QCocoaEventDispatcherPrivate::postedEventsSource |
Definition at line 120 of file qcocoaeventdispatcher.h.
uint QCocoaEventDispatcherPrivate::processEventsCalled |
Definition at line 105 of file qcocoaeventdispatcher.h.
uint QCocoaEventDispatcherPrivate::processEventsFlags |
Definition at line 82 of file qcocoaeventdispatcher.h.
bool QCocoaEventDispatcherPrivate::propagateInterrupt = false |
Definition at line 125 of file qcocoaeventdispatcher.h.
Definition at line 119 of file qcocoaeventdispatcher.h.
CFRunLoopTimerRef QCocoaEventDispatcherPrivate::runLoopTimerRef |
Definition at line 86 of file qcocoaeventdispatcher.h.
QAtomicInt QCocoaEventDispatcherPrivate::serialNumber |
Definition at line 122 of file qcocoaeventdispatcher.h.
QTimerInfoList QCocoaEventDispatcherPrivate::timerInfoList |
Definition at line 85 of file qcocoaeventdispatcher.h.
CFRunLoopObserverRef QCocoaEventDispatcherPrivate::waitingObserver |
Definition at line 121 of file qcocoaeventdispatcher.h.