summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/blackberry/qbbintegration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/blackberry/qbbintegration.cpp')
-rw-r--r--src/plugins/platforms/blackberry/qbbintegration.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/platforms/blackberry/qbbintegration.cpp b/src/plugins/platforms/blackberry/qbbintegration.cpp
index 7cada16..a180ac9 100644
--- a/src/plugins/platforms/blackberry/qbbintegration.cpp
+++ b/src/plugins/platforms/blackberry/qbbintegration.cpp
@@ -63,6 +63,10 @@
#include <errno.h>
+#if defined(Q_OS_BLACKBERRY)
+#include <bps/navigator.h>
+#endif
+
QT_BEGIN_NAMESPACE
QBBIntegration::QBBIntegration() :
@@ -109,6 +113,10 @@ QBBIntegration::QBBIntegration() :
mLocaleThread->start();
#endif
+#if defined(Q_OS_BLACKBERRY)
+ bps_initialize();
+#endif
+
// create/start the keyboard class.
QBBVirtualKeyboard::instance();
@@ -144,6 +152,10 @@ QBBIntegration::~QBBIntegration()
// cleanup global OpenGL resources
QBBGLContext::shutdown();
+#if defined(Q_OS_BLACKBERRY)
+ bps_shutdown();
+#endif
+
#if defined(QBBINTEGRATION_DEBUG)
qDebug() << "QBB: platform plugin shutdown end";
#endif