Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QCocoaEventDispatcherPrivate Class Reference

#include <qcocoaeventdispatcher.h>

+ Inheritance diagram for QCocoaEventDispatcherPrivate:
+ Collaboration diagram for QCocoaEventDispatcherPrivate:

Public Member Functions

 QCocoaEventDispatcherPrivate ()
 
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 ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () 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
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
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 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
 
- 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 unused: 21
 
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 104 of file qcocoaeventdispatcher.h.

Constructor & Destructor Documentation

◆ QCocoaEventDispatcherPrivate()

QCocoaEventDispatcherPrivate::QCocoaEventDispatcherPrivate ( )

Definition at line 765 of file qcocoaeventdispatcher.mm.

Member Function Documentation

◆ activateTimersSourceCallback()

void QCocoaEventDispatcherPrivate::activateTimersSourceCallback ( void info)
static

Definition at line 89 of file qcocoaeventdispatcher.mm.

References d, info, and qCDebug.

Referenced by QCocoaEventDispatcher::QCocoaEventDispatcher().

+ Here is the caller graph for this function:

◆ beginModalSession()

void QCocoaEventDispatcherPrivate::beginModalSession ( QWindow widget)

Definition at line 717 of file qcocoaeventdispatcher.mm.

References cocoaModalSessionStack, currentModalSessionCached, info, and window().

+ Here is the call graph for this function:

◆ cancelWaitForMoreEvents()

void QCocoaEventDispatcherPrivate::cancelWaitForMoreEvents ( )

Definition at line 907 of file qcocoaeventdispatcher.mm.

References context, and pool.

Referenced by ensureNSAppInitialized(), maybeCancelWaitForMoreEvents(), and processPostedEvents().

+ Here is the caller graph for this function:

◆ cleanupModalSessions()

void QCocoaEventDispatcherPrivate::cleanupModalSessions ( )

Definition at line 682 of file qcocoaeventdispatcher.mm.

References cleanupModalSessionsNeeded, cocoaModalSessionStack, currentModalSessionCached, endModalSession(), i, info, pool, Q_ASSERT, and release().

Referenced by processPostedEvents().

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

◆ currentModalSession()

NSModalSession QCocoaEventDispatcherPrivate::currentModalSession ( )

Definition at line 628 of file qcocoaeventdispatcher.mm.

References blockSendPostedEvents, cleanupModalSessionsNeeded, cocoaModalSessionStack, currentModalSessionCached, ensureNSAppInitialized(), QCocoaWindow::geometry(), i, info, QCocoaWindow::nativeWindow(), pool, rect, and QCocoaWindow::setGeometry().

+ Here is the call graph for this function:

◆ endModalSession()

void QCocoaEventDispatcherPrivate::endModalSession ( QWindow widget)

Definition at line 737 of file qcocoaeventdispatcher.mm.

References cleanupModalSessionsNeeded, cocoaModalSessionStack, currentModalSessionCached, i, info, and window().

Referenced by cleanupModalSessions(), and temporarilyStopAllModalSessions().

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

◆ ensureNSAppInitialized()

void QCocoaEventDispatcherPrivate::ensureNSAppInitialized ( )

Definition at line 565 of file qcocoaeventdispatcher.mm.

References cancelWaitForMoreEvents(), initializingNSApplication, isRunning(), mainRunLoop(), nsAppRunCalledByQt, and qCDebug.

Referenced by currentModalSession().

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

◆ hasModalSession()

bool QCocoaEventDispatcherPrivate::hasModalSession ( ) const

Definition at line 677 of file qcocoaeventdispatcher.mm.

References cocoaModalSessionStack.

◆ maybeCancelWaitForMoreEvents()

void QCocoaEventDispatcherPrivate::maybeCancelWaitForMoreEvents ( )

Definition at line 917 of file qcocoaeventdispatcher.mm.

References cancelWaitForMoreEvents(), QEventLoop::EventLoopExec, processEventsFlags, and QEventLoop::WaitForMoreEvents.

+ Here is the call graph for this function:

◆ maybeStartCFRunLoopTimer()

void QCocoaEventDispatcherPrivate::maybeStartCFRunLoopTimer ( )

Definition at line 110 of file qcocoaeventdispatcher.mm.

References info, QList< T >::isEmpty(), mainRunLoop(), Q_ASSERT, qMax(), runLoopTimerCallback(), runLoopTimerRef, timerInfoList, and QTimerInfoList::timerWait().

Referenced by processTimers().

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

◆ maybeStopCFRunLoopTimer()

void QCocoaEventDispatcherPrivate::maybeStopCFRunLoopTimer ( )

Definition at line 163 of file qcocoaeventdispatcher.mm.

References runLoopTimerRef.

◆ postedEventsSourceCallback()

void QCocoaEventDispatcherPrivate::postedEventsSourceCallback ( void info)
static

Definition at line 886 of file qcocoaeventdispatcher.mm.

References d, QEventLoop::EventLoopExec, info, and qCDebug.

Referenced by QCocoaEventDispatcher::QCocoaEventDispatcher().

+ Here is the caller graph for this function:

◆ processPostedEvents()

◆ processTimers()

bool QCocoaEventDispatcherPrivate::processTimers ( )

Definition at line 103 of file qcocoaeventdispatcher.mm.

References QTimerInfoList::activateTimers(), maybeStartCFRunLoopTimer(), and timerInfoList.

+ Here is the call graph for this function:

◆ runLoopTimerCallback()

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

Definition at line 78 of file qcocoaeventdispatcher.mm.

References d, QEventLoop::EventLoopExec, and info.

Referenced by maybeStartCFRunLoopTimer().

+ Here is the caller graph for this function:

◆ sendQueuedUserInputEvents()

bool QCocoaEventDispatcherPrivate::sendQueuedUserInputEvents ( )

Definition at line 833 of file qcocoaeventdispatcher.mm.

References QEventLoop::ExcludeUserInputEvents, QList< T >::isEmpty(), processEventsFlags, queuedUserInputEvents, release(), and QList< T >::takeFirst().

+ Here is the call graph for this function:

◆ temporarilyStopAllModalSessions()

void QCocoaEventDispatcherPrivate::temporarilyStopAllModalSessions ( )

Definition at line 605 of file qcocoaeventdispatcher.mm.

References cocoaModalSessionStack, currentModalSessionCached, endModalSession(), i, info, and release().

Referenced by processPostedEvents().

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

◆ waitingObserverCallback()

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

Definition at line 824 of file qcocoaeventdispatcher.mm.

References emit, and info.

Referenced by QCocoaEventDispatcher::QCocoaEventDispatcher().

+ Here is the caller graph for this function:

Member Data Documentation

◆ activateTimersSourceRef

CFRunLoopSourceRef QCocoaEventDispatcherPrivate::activateTimersSourceRef

Definition at line 116 of file qcocoaeventdispatcher.h.

◆ blockSendPostedEvents

bool QCocoaEventDispatcherPrivate::blockSendPostedEvents

Definition at line 127 of file qcocoaeventdispatcher.h.

Referenced by currentModalSession(), and processPostedEvents().

◆ cfSocketNotifier

QCFSocketNotifier QCocoaEventDispatcherPrivate::cfSocketNotifier

Definition at line 147 of file qcocoaeventdispatcher.h.

◆ cleanupModalSessionsNeeded

bool QCocoaEventDispatcherPrivate::cleanupModalSessionsNeeded

◆ cocoaModalSessionStack

◆ currentExecIsNSAppRun

bool QCocoaEventDispatcherPrivate::currentExecIsNSAppRun

Definition at line 130 of file qcocoaeventdispatcher.h.

Referenced by processPostedEvents().

◆ currentModalSessionCached

NSModalSession QCocoaEventDispatcherPrivate::currentModalSessionCached

◆ initializingNSApplication

bool QCocoaEventDispatcherPrivate::initializingNSApplication = false

Definition at line 132 of file qcocoaeventdispatcher.h.

Referenced by ensureNSAppInitialized().

◆ interrupt

bool QCocoaEventDispatcherPrivate::interrupt

◆ lastSerial

int QCocoaEventDispatcherPrivate::lastSerial

Definition at line 152 of file qcocoaeventdispatcher.h.

Referenced by processPostedEvents().

◆ nsAppRunCalledByQt

bool QCocoaEventDispatcherPrivate::nsAppRunCalledByQt

Definition at line 131 of file qcocoaeventdispatcher.h.

Referenced by ensureNSAppInitialized().

◆ postedEventsSource

CFRunLoopSourceRef QCocoaEventDispatcherPrivate::postedEventsSource

Definition at line 149 of file qcocoaeventdispatcher.h.

Referenced by processPostedEvents().

◆ processEventsCalled

uint QCocoaEventDispatcherPrivate::processEventsCalled

Definition at line 134 of file qcocoaeventdispatcher.h.

Referenced by processPostedEvents().

◆ processEventsFlags

uint QCocoaEventDispatcherPrivate::processEventsFlags

◆ propagateInterrupt

bool QCocoaEventDispatcherPrivate::propagateInterrupt = false

Definition at line 154 of file qcocoaeventdispatcher.h.

◆ queuedUserInputEvents

QList<void *> QCocoaEventDispatcherPrivate::queuedUserInputEvents

Definition at line 148 of file qcocoaeventdispatcher.h.

Referenced by sendQueuedUserInputEvents().

◆ runLoopTimerRef

CFRunLoopTimerRef QCocoaEventDispatcherPrivate::runLoopTimerRef

Definition at line 115 of file qcocoaeventdispatcher.h.

Referenced by maybeStartCFRunLoopTimer(), and maybeStopCFRunLoopTimer().

◆ serialNumber

QAtomicInt QCocoaEventDispatcherPrivate::serialNumber

Definition at line 151 of file qcocoaeventdispatcher.h.

Referenced by processPostedEvents().

◆ timerInfoList

QTimerInfoList QCocoaEventDispatcherPrivate::timerInfoList

Definition at line 114 of file qcocoaeventdispatcher.h.

Referenced by maybeStartCFRunLoopTimer(), and processTimers().

◆ waitingObserver

CFRunLoopObserverRef QCocoaEventDispatcherPrivate::waitingObserver

Definition at line 150 of file qcocoaeventdispatcher.h.


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