summaryrefslogtreecommitdiffstats
path: root/app/dbus.h
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/dbus.h
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/dbus.h')
-rw-r--r--app/dbus.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/dbus.h b/app/dbus.h
index d533143..b470166 100644
--- a/app/dbus.h
+++ b/app/dbus.h
@@ -33,14 +33,32 @@ class DbusService : public QObject {
Q_OBJECT
public:
explicit DbusService(QObject *parent = 0);
+
bool enableLMS();
+ bool enableBluetooth();
+ Q_INVOKABLE void processQMLEvent(const QString&);
+ Q_INVOKABLE long getCurrentPosition();
+
+private:
+ void setBluezPath(const QString& path);
+ QString getBluezPath() const;
+ bool checkIfPlayer(const QString& path) const;
+ QString bluezPath;
signals:
void processPlaylistUpdate(const QVariantList& mediaFiles);
void processPlaylistHide();
+ void processPlaylistShow();
+
+ void displayBluetoothMetadata(const QString& avrcp_artist, const QString& avrcp_title, const int avrcp_duration);
+ void updatePosition(const int current_position);
+ void updatePlayerStatus(const QString status);
private slots:
void lmsUpdate(const QString&, const QVariantMap&, const QStringList&);
+ void newBluetoothDevice(const QDBusObjectPath&, const QVariantMap&);
+ void removeBluetoothDevice(const QDBusObjectPath&, const QStringList&);
+ void processBluetoothEvent(const QString&, const QVariantMap&, const QStringList&);
};
#endif