diff options
Diffstat (limited to 'app/dbus.h')
-rw-r--r-- | app/dbus.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |