From 0f9e9e41961a896ad2dc2bb05fcd7f5d9ee9e26b Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Mon, 26 Jun 2017 18:34:20 -0700 Subject: binding: bluetooth: switch from dbus calls to system binding 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 --- app/main.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'app/main.cpp') 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 #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(); } -- cgit 1.2.3-korg