4#ifndef QANDROIDPLATFORMINTERATION_H
5#define QANDROIDPLATFORMINTERATION_H
10#include <QtGui/qtguiglobal.h>
11#include <qpa/qplatformintegration.h>
12#include <qpa/qplatformmenu.h>
13#include <qpa/qplatformnativeinterface.h>
14#include <qpa/qplatformopenglcontext.h>
15#include <qpa/qplatformoffscreensurface.h>
16#include <qpa/qplatformtheme.h>
17#include <private/qflatmap_p.h>
18#include <QtCore/qvarlengtharray.h>
25class QAndroidPlatformServices;
27class QPlatformAccessibility;
34 void *nativeResourceForWindow(
const QByteArray &resource, QWindow *window)
override;
56 bool hasCapability(QPlatformIntegration::Capability cap)
const override;
58 QPlatformWindow *createPlatformWindow(QWindow *window)
const override;
59 QPlatformWindow *createForeignWindow(QWindow *window, WId nativeHandle)
const override;
60 QPlatformBackingStore *createPlatformBackingStore(QWindow *window)
const override;
72 void setAvailableGeometry(
const QRect &availableGeometry);
84#ifndef QT_NO_CLIPBOARD
92#if QT_CONFIG(accessibility)
100 QPlatformTheme *createPlatformTheme(
const QString &name)
const override;
103 Qt::ScreenOrientation nativeOrientation);
106 void setTouchDevice(QPointingDevice *touchDevice) { m_touchDevice = touchDevice; }
117 EGLDisplay m_eglDisplay;
118 QPointingDevice *m_touchDevice;
122 QThread *m_mainThread;
124 static Qt::ColorScheme m_colorScheme;
126 static Qt::ScreenOrientation m_orientation;
127 static Qt::ScreenOrientation m_nativeOrientation;
128 static bool m_showPasswordEnabled;
130 QPlatformFontDatabase *m_androidFDB;
132 QScopedPointer<QAndroidPlatformServices> m_androidPlatformServices;
143 int m_primaryDisplayId = 0;
145#ifndef QT_NO_CLIPBOARD
146 QPlatformClipboard *m_androidPlatformClipboard;
150#if QT_CONFIG(accessibility)
154 QScopedPointer<QPlatformInputContext> m_inputContext;