summaryrefslogtreecommitdiffstats
path: root/app/dbus.h
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-04-16 18:31:22 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-04-18 11:53:26 -0700
commit1f14b62977b3deb285be13f4ede2449df76f24c1 (patch)
treed438b8ef94dd1e0b5f98c80ea63c9de8d0cd55ab /app/dbus.h
parentba7c74937dfbe12ab2ef2419c934a3fc6b51c711 (diff)
bluetooth: populate data for existing avrcp/a2dp connection
Bluetooth connection could exist before mediaplayer application is started. This patchset detects that and populates the initial metadata, and track position + status. AGL-Bug: SPEC-526 Change-Id: Ia0d60972c8eddd8642add708e9a4529c038e931f Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/dbus.h')
-rw-r--r--app/dbus.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/dbus.h b/app/dbus.h
index b470166..b2cfeb4 100644
--- a/app/dbus.h
+++ b/app/dbus.h
@@ -25,6 +25,7 @@
#include <QtDBus/QDBusPendingCall>
#include <QtDBus/QDBusPendingReply>
#include <QtDBus/QDBusInterface>
+#include <QtDBus/QDBusReply>
#include <QtDBus/QDBusConnection>
#include "lightmediascanner.h"
@@ -43,6 +44,8 @@ private:
void setBluezPath(const QString& path);
QString getBluezPath() const;
bool checkIfPlayer(const QString& path) const;
+ bool deviceConnected(const QDBusConnection& system_bus);
+ void initialBluetoothData(const QDBusConnection& system_bus);
QString bluezPath;
signals: