Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QCocoaEventDispatcherPrivate Class Reference

#include <qcocoaeventdispatcher.h>

Inheritance diagram for QCocoaEventDispatcherPrivate:
Collaboration diagram for QCocoaEventDispatcherPrivate:

Public Member Functions

 QCocoaEventDispatcherPrivate ()
 ~QCocoaEventDispatcherPrivate () override
void maybeStartCFRunLoopTimer ()
void maybeStopCFRunLoopTimer ()
bool processTimers ()
NSModalSession currentModalSession ()
void temporarilyStopAllModalSessions ()
void beginModalSession (QWindow *widget)
void endModalSession (QWindow *widget)
bool hasModalSession () const
void cleanupModalSessions ()
void cancelWaitForMoreEvents ()
void maybeCancelWaitForMoreEvents ()
void ensureNSAppInitialized ()
bool sendQueuedUserInputEvents ()
void processPostedEvents ()
Public Member Functions inherited from QAbstractEventDispatcherPrivate
 QAbstractEventDispatcherPrivate ()
 ~QAbstractEventDispatcherPrivate () override
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
void setParent_helper (QObject *)
void moveToThread_helper ()
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
QObjectList receiverList (const char *signal) const
void ensureConnectionData ()
void addConnection (int signal, Connection *c)
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
bool maybeSignalConnected (uint signalIndex) const
bool isDeclarativeSignalConnected (uint signalIdx) const
void connectNotify (const QMetaMethod &signal)
void disconnectNotify (const QMetaMethod &signal)
void reinitBindingStorageAfterThreadMove ()
virtual std::string flagsForDumping () const
virtual void writeToDebugStream (QDebug &) const
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
Public Member Functions inherited from QObjectData
 QObjectData ()=default
virtual ~QObjectData ()=0
const QMetaObjectdynamicMetaObject () const

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 Public Member Functions inherited from QAbstractEventDispatcherPrivate
static int allocateTimerId ()
static void releaseTimerId (int id)
static void releaseTimerId (Qt::TimerId id)
static QAbstractEventDispatcherPrivateget (QAbstractEventDispatcher *o)
static const QAbstractEventDispatcherPrivateget (const QAbstractEventDispatcher *o)
Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
static QObjectPrivateget (QObject *o)
static const QObjectPrivateget (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)

Public Attributes

uint processEventsFlags
QTimerInfoList timerInfoList
CFRunLoopTimerRef runLoopTimerRef
CFRunLoopSourceRef activateTimersSourceRef
bool blockSendPostedEvents
QStack< QCocoaModalSessionInfococoaModalSessionStack
bool currentExecIsNSAppRun
bool nsAppRunCalledByQt
bool initializingNSApplication = false
bool cleanupModalSessionsNeeded
uint processEventsCalled
NSModalSession currentModalSessionCached
QCFSocketNotifier cfSocketNotifier
QList< void * > queuedUserInputEvents
CFRunLoopSourceRef postedEventsSource
CFRunLoopObserverRef waitingObserver
QAtomicInt serialNumber
int lastSerial
bool interrupt
bool propagateInterrupt = false
Public Attributes inherited from QAbstractEventDispatcherPrivate
QList< QAbstractNativeEventFilter * > eventFilters
bool isV2 = false
Public Attributes inherited from QObjectPrivate
ExtraDataextraData
QAtomicPointer< QThreadDatathreadData
QAtomicPointer< ConnectionDataconnections
union { 
   QObject *   currentChildBeingDeleted 
   QAbstractDeclarativeData *   declarativeData 
}; 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
Public Attributes inherited from QObjectData
QObjectq_ptr
QObjectparent
QObjectList children
uint isWidget: 1
uint blockSig: 1
uint wasDeleted: 1
uint isDeletingChildren: 1
uint sendChildEvents: 1
uint receiveChildEvents: 1
uint isWindow: 1
uint deleteLaterCalled: 1
uint isQuickItem: 1
uint willBeWidget: 1
uint wasWidget: 1
uint receiveParentEvents: 1
uint unused: 20
QAtomicInt postedEvents
QDynamicMetaObjectDatametaObject
QBindingStorage bindingStorage

Additional Inherited Members

Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>

Detailed Description

Definition at line 75 of file qcocoaeventdispatcher.h.

Constructor & Destructor Documentation

◆ QCocoaEventDispatcherPrivate()

QCocoaEventDispatcherPrivate::QCocoaEventDispatcherPrivate ( )

◆ ~QCocoaEventDispatcherPrivate()

QCocoaEventDispatcherPrivate::~QCocoaEventDispatcherPrivate ( )
overridedefault

Member Function Documentation

◆ activateTimersSourceCallback()

void QCocoaEventDispatcherPrivate::activateTimersSourceCallback ( void * info)
static

Definition at line 57 of file qcocoaeventdispatcher.mm.

References initializingNSApplication, maybeCancelWaitForMoreEvents(), and processTimers().

Referenced by QCocoaEventDispatcher::QCocoaEventDispatcher().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ beginModalSession()

void QCocoaEventDispatcherPrivate::beginModalSession ( QWindow * widget)

Definition at line 695 of file qcocoaeventdispatcher.mm.

References currentModalSessionCached.

◆ cancelWaitForMoreEvents()

void QCocoaEventDispatcherPrivate::cancelWaitForMoreEvents ( )

Definition at line 898 of file qcocoaeventdispatcher.mm.

Referenced by maybeCancelWaitForMoreEvents(), and processPostedEvents().

Here is the caller graph for this function:

◆ cleanupModalSessions()

void QCocoaEventDispatcherPrivate::cleanupModalSessions ( )

Definition at line 658 of file qcocoaeventdispatcher.mm.

References cleanupModalSessionsNeeded, currentModalSessionCached, and _QCocoaModalSessionInfo::session.

Referenced by processPostedEvents().

Here is the caller graph for this function:

◆ currentModalSession()

NSModalSession QCocoaEventDispatcherPrivate::currentModalSession ( )

Definition at line 602 of file qcocoaeventdispatcher.mm.

References blockSendPostedEvents, cleanupModalSessionsNeeded, currentModalSessionCached, ensureNSAppInitialized(), and _QCocoaModalSessionInfo::session.

Here is the call graph for this function:

◆ endModalSession()

void QCocoaEventDispatcherPrivate::endModalSession ( QWindow * widget)

◆ ensureNSAppInitialized()

void QCocoaEventDispatcherPrivate::ensureNSAppInitialized ( )

Definition at line 537 of file qcocoaeventdispatcher.mm.

References initializingNSApplication, and nsAppRunCalledByQt.

Referenced by currentModalSession().

Here is the caller graph for this function:

◆ hasModalSession()

bool QCocoaEventDispatcherPrivate::hasModalSession ( ) const

Definition at line 653 of file qcocoaeventdispatcher.mm.

◆ maybeCancelWaitForMoreEvents()

void QCocoaEventDispatcherPrivate::maybeCancelWaitForMoreEvents ( )

Definition at line 908 of file qcocoaeventdispatcher.mm.

References cancelWaitForMoreEvents().

Referenced by activateTimersSourceCallback(), postedEventsSourceCallback(), and runLoopTimerCallback().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ maybeStartCFRunLoopTimer()

void QCocoaEventDispatcherPrivate::maybeStartCFRunLoopTimer ( )

Definition at line 78 of file qcocoaeventdispatcher.mm.

Referenced by processTimers().

Here is the caller graph for this function:

◆ maybeStopCFRunLoopTimer()

void QCocoaEventDispatcherPrivate::maybeStopCFRunLoopTimer ( )

Definition at line 132 of file qcocoaeventdispatcher.mm.

◆ postedEventsSourceCallback()

void QCocoaEventDispatcherPrivate::postedEventsSourceCallback ( void * info)
static

Definition at line 877 of file qcocoaeventdispatcher.mm.

References initializingNSApplication, maybeCancelWaitForMoreEvents(), processPostedEvents(), and sendQueuedUserInputEvents().

Referenced by QCocoaEventDispatcher::QCocoaEventDispatcher().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ processPostedEvents()

void QCocoaEventDispatcherPrivate::processPostedEvents ( )

Definition at line 841 of file qcocoaeventdispatcher.mm.

References blockSendPostedEvents, cancelWaitForMoreEvents(), cleanupModalSessions(), cleanupModalSessionsNeeded, currentExecIsNSAppRun, currentModalSessionCached, lastSerial, and temporarilyStopAllModalSessions().

Referenced by postedEventsSourceCallback().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ processTimers()

bool QCocoaEventDispatcherPrivate::processTimers ( )

Definition at line 71 of file qcocoaeventdispatcher.mm.

References maybeStartCFRunLoopTimer().

Referenced by activateTimersSourceCallback().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ runLoopTimerCallback()

void QCocoaEventDispatcherPrivate::runLoopTimerCallback ( CFRunLoopTimerRef ,
void * info )
static

Definition at line 46 of file qcocoaeventdispatcher.mm.

References maybeCancelWaitForMoreEvents().

Here is the call graph for this function:

◆ sendQueuedUserInputEvents()

bool QCocoaEventDispatcherPrivate::sendQueuedUserInputEvents ( )

Definition at line 824 of file qcocoaeventdispatcher.mm.

Referenced by postedEventsSourceCallback().

Here is the caller graph for this function:

◆ temporarilyStopAllModalSessions()

void QCocoaEventDispatcherPrivate::temporarilyStopAllModalSessions ( )

Definition at line 577 of file qcocoaeventdispatcher.mm.

References currentModalSessionCached, and _QCocoaModalSessionInfo::session.

Referenced by processPostedEvents().

Here is the caller graph for this function:

◆ waitingObserverCallback()

void QCocoaEventDispatcherPrivate::waitingObserverCallback ( CFRunLoopObserverRef observer,
CFRunLoopActivity activity,
void * info )
static

Definition at line 815 of file qcocoaeventdispatcher.mm.

Member Data Documentation

◆ activateTimersSourceRef

CFRunLoopSourceRef QCocoaEventDispatcherPrivate::activateTimersSourceRef

Definition at line 88 of file qcocoaeventdispatcher.h.

◆ blockSendPostedEvents

bool QCocoaEventDispatcherPrivate::blockSendPostedEvents

◆ cfSocketNotifier

QCFSocketNotifier QCocoaEventDispatcherPrivate::cfSocketNotifier

Definition at line 119 of file qcocoaeventdispatcher.h.

◆ cleanupModalSessionsNeeded

bool QCocoaEventDispatcherPrivate::cleanupModalSessionsNeeded

◆ cocoaModalSessionStack

QStack<QCocoaModalSessionInfo> QCocoaEventDispatcherPrivate::cocoaModalSessionStack

Definition at line 101 of file qcocoaeventdispatcher.h.

◆ currentExecIsNSAppRun

bool QCocoaEventDispatcherPrivate::currentExecIsNSAppRun

Definition at line 102 of file qcocoaeventdispatcher.h.

Referenced by QCocoaEventDispatcherPrivate(), and processPostedEvents().

◆ currentModalSessionCached

◆ initializingNSApplication

bool QCocoaEventDispatcherPrivate::initializingNSApplication = false

◆ interrupt

bool QCocoaEventDispatcherPrivate::interrupt

◆ lastSerial

int QCocoaEventDispatcherPrivate::lastSerial

Definition at line 124 of file qcocoaeventdispatcher.h.

Referenced by QCocoaEventDispatcherPrivate(), and processPostedEvents().

◆ nsAppRunCalledByQt

bool QCocoaEventDispatcherPrivate::nsAppRunCalledByQt

◆ postedEventsSource

CFRunLoopSourceRef QCocoaEventDispatcherPrivate::postedEventsSource

Definition at line 121 of file qcocoaeventdispatcher.h.

◆ processEventsCalled

uint QCocoaEventDispatcherPrivate::processEventsCalled

Definition at line 106 of file qcocoaeventdispatcher.h.

◆ processEventsFlags

uint QCocoaEventDispatcherPrivate::processEventsFlags

Definition at line 83 of file qcocoaeventdispatcher.h.

◆ propagateInterrupt

bool QCocoaEventDispatcherPrivate::propagateInterrupt = false

Definition at line 126 of file qcocoaeventdispatcher.h.

◆ queuedUserInputEvents

QList<void *> QCocoaEventDispatcherPrivate::queuedUserInputEvents

Definition at line 120 of file qcocoaeventdispatcher.h.

◆ runLoopTimerRef

CFRunLoopTimerRef QCocoaEventDispatcherPrivate::runLoopTimerRef

Definition at line 87 of file qcocoaeventdispatcher.h.

◆ serialNumber

QAtomicInt QCocoaEventDispatcherPrivate::serialNumber

Definition at line 123 of file qcocoaeventdispatcher.h.

◆ timerInfoList

QTimerInfoList QCocoaEventDispatcherPrivate::timerInfoList

Definition at line 86 of file qcocoaeventdispatcher.h.

◆ waitingObserver

CFRunLoopObserverRef QCocoaEventDispatcherPrivate::waitingObserver

Definition at line 122 of file qcocoaeventdispatcher.h.


The documentation for this class was generated from the following files: