summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-06-26 18:34:20 -0700
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-06-30 19:29:06 +0000
commit5cd7736e1e104c6ff779dcca1026aad208ed4b1d (patch)
treea1b71c0844892d0ea56f00a9dc2d68d4b6b40280 /app/main.cpp
parentb7cd2250f9b34fa65ea92da8eb35775c6f5c61c8 (diff)
binding: bluetooth: switch from dbus calls to system bindingdab_3.99.2dab/3.99.23.99.2
Use the system wide binding for Bluetooth access to get AVRCP metadata, and triggers controls. Bug-AGL: SPEC-610 SPEC-615 Change-Id: Ic894c75d663b797b8a331236ff756b3b94bc13c8 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/app/main.cpp b/app/main.cpp
index a5bab67..5ad9577 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -29,10 +29,6 @@
#include <libhomescreen.hpp>
#endif
-#ifdef HAVE_DBUS
-#include "dbus.h"
-#endif
-
#include "playlistwithmetadata.h"
#ifndef HAVE_LIGHTMEDIASCANNER
@@ -105,17 +101,7 @@ int main(int argc, char *argv[])
context->setContextProperty(QStringLiteral("bindingAddress"), bindingAddress);
}
-#if defined(HAVE_DBUS)
- DbusService dbus_service;
- context->setContextProperty("dbus", &dbus_service);
-#endif
-
engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml")));
-#if defined(HAVE_DBUS)
- if (!dbus_service.enableBluetooth())
- qWarning() << "Cannot run enableBluetooth";
-#endif
-
return app.exec();
}