5#ifndef QANDROIDEVENTDISPATCHER_H
6#define QANDROIDEVENTDISPATCHER_H
8#include <QtCore/QMutex>
9#include <QtCore/QSemaphore>
10#include <QtGui/private/qunixeventdispatcher_qpa_p.h>
12class QAndroidEventDispatcher :
public QUnixEventDispatcherQPA
16 explicit QAndroidEventDispatcher(QObject *parent =
nullptr);
17 ~QAndroidEventDispatcher();
21 void goingToStop(
bool stop);
24 bool processEvents(QEventLoop::ProcessEventsFlags flags) override;
27 QAtomicInt m_stopRequest;
28 QAtomicInt m_goingToStop;
29 QSemaphore m_semaphore;
45 QAtomicInt m_started = 1;
46 QList<QAndroidEventDispatcher *> m_dispatchers;
static QAndroidEventDispatcherStopper * instance()
void removeEventDispatcher(QAndroidEventDispatcher *dispatcher)
void addEventDispatcher(QAndroidEventDispatcher *dispatcher)
void goingToStop(bool stop)
static QAndroidInputContext * androidInputContext()
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
void hideContextMenu(QAndroidPlatformMenu *menu)
void menuBarChanged(QAndroidPlatformMenuBar *menuBar)
void syncMenu(QAndroidPlatformMenu *menu)
void setActiveTopLevelWindow(QWindow *window)
void removeMenuBar(QAndroidPlatformMenuBar *menuBar)
void androidPlatformMenuDestroyed(QAndroidPlatformMenu *menu)
void addMenuBar(QAndroidPlatformMenuBar *menuBar)
void showContextMenu(QAndroidPlatformMenu *menu, const QRect &anchorRect)
bool registerNatives(QJniEnvironment &env)
void setMenuBar(QAndroidPlatformMenuBar *menuBar, QWindow *window)
QBasicMutex * platformInterfaceMutex()
QAndroidPlatformIntegration * androidPlatformIntegration()
AndroidBackendRegister * backendRegister()
QWindow * windowFromId(int windowId)
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)