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
qioseventdispatcher.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QIOSEVENTDISPATCHER_H
6
#
define
QIOSEVENTDISPATCHER_H
7
8
#
include
<
QtCore
/
private
/
qeventdispatcher_cf_p
.
h
>
9
10
QT_BEGIN_NAMESPACE
11
12
class
QIOSEventDispatcher :
public
QEventDispatcherCoreFoundation
13
{
14
Q_OBJECT
15
16
public
:
17
static
QIOSEventDispatcher* create();
18
bool
processPostedEvents() override;
19
20
static
bool
isQtApplication();
21
22
protected
:
23
explicit
QIOSEventDispatcher(QObject *parent =
nullptr
);
24
};
25
26
class
QIOSJumpingEventDispatcher
:
public
QIOSEventDispatcher
27
{
28
Q_OBJECT
29
30
public
:
31
QIOSJumpingEventDispatcher
(
QObject
*
parent
=
nullptr
);
32
bool
processEvents
(QEventLoop::ProcessEventsFlags flags)
override
;
33
34
// Public since we can't friend Objective-C methods
35
void
handleRunLoopExit
(CFRunLoopActivity activity);
36
37
private
:
38
uint m_processEventLevel;
39
RunLoopObserver<QIOSJumpingEventDispatcher> m_runLoopExitObserver;
40
};
41
42
QT_END_NAMESPACE
43
44
#
endif
// QIOSEVENTDISPATCHER_H
QIOSJumpingEventDispatcher
Definition
qioseventdispatcher.h:27
QIOSJumpingEventDispatcher::handleRunLoopExit
void handleRunLoopExit(CFRunLoopActivity activity)
Definition
qioseventdispatcher.mm:115
__attribute__
bool __attribute__((returns_twice)) QIOSJumpingEventDispatcher
Definition
qioseventdispatcher.mm:86
qtbase
src
plugins
platforms
ios
qioseventdispatcher.h
Generated on
for Qt by
1.16.1