summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxintegration.h
diff options
context:
space:
mode:
authorKevin Krammer <kevin.krammer.qnx@kdab.com>2012-04-11 13:25:28 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-26 15:21:46 +0200
commit8c59e22538b54c9170376bf22e2e6be054b38454 (patch)
tree2c3bea3ea20d1bbe2ebbd2f84b3dd268c1d7bc7f /src/plugins/platforms/qnx/qqnxintegration.h
parent99a620d2e2d5225f2b5e29d52617a8a5328081fd (diff)
Create interface for navigator calls and implement for BPS and PPS
Makes QQnxServices available on non-BPS systems by delegating to an interface which is implemented on systems with BPS using the currenly used navigator API and on systems without BPS by sending an appropriate message to the navigator's PPS service interface. Change-Id: I0e32fb11e6debb7b7b4693c0bc02af4f75ee2162 Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxintegration.h')
-rw-r--r--src/plugins/platforms/qnx/qqnxintegration.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/plugins/platforms/qnx/qqnxintegration.h b/src/plugins/platforms/qnx/qqnxintegration.h
index b46c40680e..c578938db2 100644
--- a/src/plugins/platforms/qnx/qqnxintegration.h
+++ b/src/plugins/platforms/qnx/qqnxintegration.h
@@ -55,16 +55,17 @@ class QQnxNativeInterface;
class QQnxWindow;
class QQnxScreen;
class QQnxScreenEventHandler;
-
-#ifdef Q_OS_BLACKBERRY
-class QQnxInputContext;
class QQnxNavigatorEventHandler;
-class QQnxNavigatorEventNotifier;
+class QQnxAbstractNavigator;
class QQnxAbstractVirtualKeyboard;
class QQnxServices;
+
+#if defined(QQNX_PPS)
+class QQnxInputContext;
+class QQnxNavigatorEventNotifier;
#endif
-#ifndef QT_NO_CLIPBOARD
+#if !defined(QT_NO_CLIPBOARD)
class QQnxClipboard;
#endif
@@ -82,11 +83,11 @@ public:
QPlatformWindow *createPlatformWindow(QWindow *window) const;
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const;
-#ifndef QT_NO_OPENGL
+#if !defined(QT_NO_OPENGL)
QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const;
#endif
-#ifdef Q_OS_BLACKBERRY
+#if defined(QQNX_PPS)
QPlatformInputContext *inputContext() const;
#endif
@@ -98,19 +99,17 @@ public:
QPlatformNativeInterface *nativeInterface() const;
-#ifndef QT_NO_CLIPBOARD
+#if !defined(QT_NO_CLIPBOARD)
QPlatformClipboard *clipboard() const;
#endif
QVariant styleHint(StyleHint hint) const;
-#ifndef QT_NO_OPENGL
+#if !defined(QT_NO_OPENGL)
bool paintUsingOpenGL() const { return m_paintUsingOpenGL; }
#endif
-#ifdef Q_OS_BLACKBERRY
QPlatformServices *services() const;
-#endif
static QWindow *window(screen_window_t qnxWindow);
@@ -124,25 +123,27 @@ private:
screen_context_t m_screenContext;
QQnxEventThread *m_eventThread;
-#ifdef Q_OS_BLACKBERRY
QQnxNavigatorEventHandler *m_navigatorEventHandler;
- QQnxNavigatorEventNotifier *m_navigatorEventNotifier;
QQnxAbstractVirtualKeyboard *m_virtualKeyboard;
+#if defined(QQNX_PPS)
+ QQnxNavigatorEventNotifier *m_navigatorEventNotifier;
QQnxInputContext *m_inputContext;
- QQnxServices *m_services;
#endif
+ QQnxServices *m_services;
QPlatformFontDatabase *m_fontDatabase;
-#ifndef QT_NO_OPENGL
+#if !defined(QT_NO_OPENGL)
bool m_paintUsingOpenGL;
#endif
QAbstractEventDispatcher *m_eventDispatcher;
QQnxNativeInterface *m_nativeInterface;
QList<QQnxScreen*> m_screens;
QQnxScreenEventHandler *m_screenEventHandler;
-#ifndef QT_NO_CLIPBOARD
+#if !defined(QT_NO_CLIPBOARD)
mutable QQnxClipboard* m_clipboard;
#endif
+ QQnxAbstractNavigator *m_navigator;
+
static QQnxWindowMapper ms_windowMapper;
static QMutex ms_windowMapperMutex;