summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/blackberry/bbserviceplugin.cpp8
-rw-r--r--src/plugins/blackberry/blackberry.pro6
2 files changed, 12 insertions, 2 deletions
diff --git a/src/plugins/blackberry/bbserviceplugin.cpp b/src/plugins/blackberry/bbserviceplugin.cpp
index 90364f3f8..0a9abd71d 100644
--- a/src/plugins/blackberry/bbserviceplugin.cpp
+++ b/src/plugins/blackberry/bbserviceplugin.cpp
@@ -40,9 +40,11 @@
****************************************************************************/
#include "bbserviceplugin.h"
+#ifndef Q_OS_BLACKBERRY_TABLET
#include "bbcameraservice.h"
-#include "bbmediaplayerservice.h"
#include "bbvideodeviceselectorcontrol.h"
+#endif
+#include "bbmediaplayerservice.h"
#include <QDebug>
@@ -54,8 +56,10 @@ BbServicePlugin::BbServicePlugin()
QMediaService *BbServicePlugin::create(const QString &key)
{
+#ifndef Q_OS_BLACKBERRY_TABLET
if (key == QLatin1String(Q_MEDIASERVICE_CAMERA))
return new BbCameraService();
+#endif
if (key == QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER))
return new BbMediaPlayerService();
@@ -102,7 +106,9 @@ QString BbServicePlugin::deviceDescription(const QByteArray &service, const QByt
void BbServicePlugin::updateDevices() const
{
+#ifndef Q_OS_BLACKBERRY_TABLET
BbVideoDeviceSelectorControl::enumerateDevices(&m_cameraDevices, &m_cameraDescriptions);
+#endif
if (m_cameraDevices.isEmpty()) {
qWarning() << "No camera devices found";
diff --git a/src/plugins/blackberry/blackberry.pro b/src/plugins/blackberry/blackberry.pro
index 806f20333..5684645fb 100644
--- a/src/plugins/blackberry/blackberry.pro
+++ b/src/plugins/blackberry/blackberry.pro
@@ -11,7 +11,11 @@ HEADERS += bbserviceplugin.h
SOURCES += bbserviceplugin.cpp
include(common/common.pri)
-include(camera/camera.pri)
+
+!blackberry-playbook {
+ include(camera/camera.pri)
+}
+
include(mediaplayer/mediaplayer.pri)
OTHER_FILES += blackberry_mediaservice.json