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
10QT_BEGIN_NAMESPACE
11
12class QIOSEventDispatcher : public QEventDispatcherCoreFoundation
13{
14 Q_OBJECT
15
16public:
17 static QIOSEventDispatcher* create();
18 bool processPostedEvents() override;
19
20 static bool isQtApplication();
21
22protected:
23 explicit QIOSEventDispatcher(QObject *parent = nullptr);
24};
25
26class QIOSJumpingEventDispatcher : public QIOSEventDispatcher
27{
29
30public:
32 bool processEvents(QEventLoop::ProcessEventsFlags flags) override;
33
34 // Public since we can't friend Objective-C methods
35 void handleRunLoopExit(CFRunLoopActivity activity);
36
38
39private:
40 uint m_processEventLevel;
41 RunLoopObserver<QIOSJumpingEventDispatcher> m_runLoopExitObserver;
42};
43
44QT_END_NAMESPACE
45
46#endif // QIOSEVENTDISPATCHER_H
void handleRunLoopExit(CFRunLoopActivity activity)
int main(int argc, char *argv[])
[ctor_close]
static const size_t kBytesPerKiloByte
#define qAlignUp(val, align)
#define qAlignDown(val, align)
bool __attribute__((returns_twice)) QIOSJumpingEventDispatcher
int qt_main_wrapper(int argc, char *argv[])
static const long kPageSize
static void __attribute__((noinline, noreturn)) user_main_trampoline()
static const char kApplicationWillTerminateExitCode
@ kJumpedFromUserMainTrampoline
@ kJumpedFromEventLoopExecInterrupt
@ kJumpedFromEventDispatcherProcessEvents
@ kJumpPointSetSuccessfully
static bool rootLevelRunLoopIntegration()