Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
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)
 
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
 
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 107 of file qcocoaeventdispatcher.h.

Constructor & Destructor Documentation

◆ QCocoaEventDispatcherPrivate()

QCocoaEventDispatcherPrivate::QCocoaEventDispatcherPrivate ( )

Definition at line 785 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 727 of file qcocoaeventdispatcher.mm.

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

+ Here is the call graph for this function:

◆ cancelWaitForMoreEvents()

void QCocoaEventDispatcherPrivate::cancelWaitForMoreEvents ( )

Definition at line 927 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 690 of file qcocoaeventdispatcher.mm.

References cleanupModalSessionsNeeded, cocoaModalSessionStack, currentModalSessionCached, endModalSession(), i, info, pool, Q_ASSERT, qCDebug, 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 634 of file qcocoaeventdispatcher.mm.

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

+ Here is the call graph for this function:

◆ endModalSession()

void QCocoaEventDispatcherPrivate::endModalSession ( QWindow * widget)

Definition at line 755 of file qcocoaeventdispatcher.mm.

References cleanupModalSessionsNeeded, cocoaModalSessionStack, currentModalSessionCached, i, info, qCDebug, 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 569 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 685 of file qcocoaeventdispatcher.mm.

References cocoaModalSessionStack.

◆ maybeCancelWaitForMoreEvents()

void QCocoaEventDispatcherPrivate::maybeCancelWaitForMoreEvents ( )

Definition at line 937 of file qcocoaeventdispatcher.mm.

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

Referenced by runLoopTimerCallback().

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

◆ maybeStartCFRunLoopTimer()

void QCocoaEventDispatcherPrivate::maybeStartCFRunLoopTimer ( )

Definition at line 110 of file qcocoaeventdispatcher.mm.

References info, QTimerInfoList::isEmpty(), mainRunLoop(), opt, 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 164 of file qcocoaeventdispatcher.mm.

References runLoopTimerRef.

◆ postedEventsSourceCallback()

void QCocoaEventDispatcherPrivate::postedEventsSourceCallback ( void * info)
static

Definition at line 906 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, info, and maybeCancelWaitForMoreEvents().

Referenced by maybeStartCFRunLoopTimer().

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

◆ sendQueuedUserInputEvents()

bool QCocoaEventDispatcherPrivate::sendQueuedUserInputEvents ( )

Definition at line 853 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 609 of file qcocoaeventdispatcher.mm.

References cocoaModalSessionStack, currentModalSessionCached, endModalSession(), i, info, qCDebug, 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 844 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 119 of file qcocoaeventdispatcher.h.

◆ blockSendPostedEvents

bool QCocoaEventDispatcherPrivate::blockSendPostedEvents

Definition at line 130 of file qcocoaeventdispatcher.h.

Referenced by currentModalSession(), and processPostedEvents().

◆ cfSocketNotifier

QCFSocketNotifier QCocoaEventDispatcherPrivate::cfSocketNotifier

Definition at line 150 of file qcocoaeventdispatcher.h.

◆ cleanupModalSessionsNeeded

bool QCocoaEventDispatcherPrivate::cleanupModalSessionsNeeded

◆ cocoaModalSessionStack

◆ currentExecIsNSAppRun

bool QCocoaEventDispatcherPrivate::currentExecIsNSAppRun

Definition at line 133 of file qcocoaeventdispatcher.h.

Referenced by processPostedEvents().

◆ currentModalSessionCached

NSModalSession QCocoaEventDispatcherPrivate::currentModalSessionCached

◆ initializingNSApplication

bool QCocoaEventDispatcherPrivate::initializingNSApplication = false

Definition at line 135 of file qcocoaeventdispatcher.h.

Referenced by ensureNSAppInitialized().

◆ interrupt

bool QCocoaEventDispatcherPrivate::interrupt

◆ lastSerial

int QCocoaEventDispatcherPrivate::lastSerial

Definition at line 155 of file qcocoaeventdispatcher.h.

Referenced by processPostedEvents().

◆ nsAppRunCalledByQt

bool QCocoaEventDispatcherPrivate::nsAppRunCalledByQt

Definition at line 134 of file qcocoaeventdispatcher.h.

Referenced by ensureNSAppInitialized().

◆ postedEventsSource

CFRunLoopSourceRef QCocoaEventDispatcherPrivate::postedEventsSource

Definition at line 152 of file qcocoaeventdispatcher.h.

Referenced by processPostedEvents().

◆ processEventsCalled

uint QCocoaEventDispatcherPrivate::processEventsCalled

Definition at line 137 of file qcocoaeventdispatcher.h.

Referenced by processPostedEvents().

◆ processEventsFlags

uint QCocoaEventDispatcherPrivate::processEventsFlags

◆ propagateInterrupt

bool QCocoaEventDispatcherPrivate::propagateInterrupt = false

Definition at line 157 of file qcocoaeventdispatcher.h.

◆ queuedUserInputEvents

QList<void *> QCocoaEventDispatcherPrivate::queuedUserInputEvents

Definition at line 151 of file qcocoaeventdispatcher.h.

Referenced by sendQueuedUserInputEvents().

◆ runLoopTimerRef

CFRunLoopTimerRef QCocoaEventDispatcherPrivate::runLoopTimerRef

Definition at line 118 of file qcocoaeventdispatcher.h.

Referenced by maybeStartCFRunLoopTimer(), and maybeStopCFRunLoopTimer().

◆ serialNumber

QAtomicInt QCocoaEventDispatcherPrivate::serialNumber

Definition at line 154 of file qcocoaeventdispatcher.h.

Referenced by processPostedEvents().

◆ timerInfoList

QTimerInfoList QCocoaEventDispatcherPrivate::timerInfoList

Definition at line 117 of file qcocoaeventdispatcher.h.

Referenced by maybeStartCFRunLoopTimer(), and processTimers().

◆ waitingObserver

CFRunLoopObserverRef QCocoaEventDispatcherPrivate::waitingObserver

Definition at line 153 of file qcocoaeventdispatcher.h.


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