Skip to content

Commit dcfd247

Browse files
committed
service/mpris: expose dbus service name
1 parent 574e678 commit dcfd247

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/services/mpris/player.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,15 @@ class MprisPlayer: public QObject {
7070
Q_PROPERTY(bool canSeek READ canSeek NOTIFY canSeekChanged BINDABLE bindableCanSeek);
7171
Q_PROPERTY(bool canGoNext READ canGoNext NOTIFY canGoNextChanged BINDABLE bindableCanGoNext);
7272
Q_PROPERTY(bool canGoPrevious READ canGoPrevious NOTIFY canGoPreviousChanged BINDABLE bindableCanGoPrevious);
73-
Q_PROPERTY(bool canQuit READ canQuit NOTIFY canQuitChanged BINDABLE bindableCanQuit BINDABLE bindableCanQuit);
74-
Q_PROPERTY(bool canRaise READ canRaise NOTIFY canRaiseChanged BINDABLE bindableCanRaise BINDABLE bindableCanRaise);
73+
Q_PROPERTY(bool canQuit READ canQuit NOTIFY canQuitChanged BINDABLE bindableCanQuit);
74+
Q_PROPERTY(bool canRaise READ canRaise NOTIFY canRaiseChanged BINDABLE bindableCanRaise);
7575
Q_PROPERTY(bool canSetFullscreen READ canSetFullscreen NOTIFY canSetFullscreenChanged BINDABLE bindableCanSetFullscreen);
7676
/// The human readable name of the media player.
7777
Q_PROPERTY(QString identity READ identity NOTIFY identityChanged BINDABLE bindableIdentity);
7878
/// The name of the desktop entry for the media player, or an empty string if not provided.
7979
Q_PROPERTY(QString desktopEntry READ desktopEntry NOTIFY desktopEntryChanged BINDABLE bindableDesktopEntry);
80+
/// The DBus service name of the player.
81+
Q_PROPERTY(QString dbusName READ address CONSTANT);
8082
/// The current position in the playing track, as seconds, with millisecond precision,
8183
/// or `0` if @@positionSupported is false.
8284
///

0 commit comments

Comments
 (0)