summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-04-03 22:35:00 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-04-18 11:52:40 -0700
commitba7c74937dfbe12ab2ef2419c934a3fc6b51c711 (patch)
treeb2d3156533b207c6a52e96732b4f4c33a260fc6e /app/main.cpp
parent3aeb5e52f454b972a423d5e4a359e0e02adec248 (diff)
bluetooth: add a2dp metadata and avrcp controls
Add initial support for Bluetooth A2DP streams, and AVRCP player controls, and metadata. Bug-AGL: SPEC-486 SPEC-524 SPEC-525 Change-Id: Iac3095c517f07d7e65bf0bd5639d85bab2de7451 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/main.cpp b/app/main.cpp
index e8d4082..dd84f59 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -87,12 +87,16 @@ int main(int argc, char *argv[])
QQmlContext *context = engine.rootContext();
context->setContextProperty("mediaFiles", mediaFiles);
-#if defined(HAVE_DBUS) && defined(HAVE_LIGHTMEDIASCANNER)
+#if defined(HAVE_DBUS)
DbusService dbus_service;
context->setContextProperty("dbus", &dbus_service);
+#if defined(HAVE_LIGHTMEDIASCANNER)
if (!dbus_service.enableLMS())
qWarning() << "Cannot run enableLMS";
#endif
+ if (!dbus_service.enableBluetooth())
+ qWarning() << "Cannot run enableBluetooth";
+#endif
engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml")));
return app.exec();