X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2Fdbus.h;h=bdc2f4fd57001df145375c31d17964c136954e6f;hb=dc657beb055b28cec94f92ce631921ecf83e3935;hp=b470166a96c42ecccc397eef7171c1b18fe2a808;hpb=ba7c74937dfbe12ab2ef2419c934a3fc6b51c711;p=apps%2Fmediaplayer.git diff --git a/app/dbus.h b/app/dbus.h index b470166..bdc2f4f 100644 --- a/app/dbus.h +++ b/app/dbus.h @@ -25,16 +25,14 @@ #include #include #include +#include #include -#include "lightmediascanner.h" - 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(); @@ -43,6 +41,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: @@ -51,11 +51,11 @@ signals: void processPlaylistShow(); void displayBluetoothMetadata(const QString& avrcp_artist, const QString& avrcp_title, const int avrcp_duration); + void stopPlayback(); 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&);