aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/mpris/mpris.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/mpris/mpris.cpp')
-rw-r--r--src/plugins/General/mpris/mpris.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/General/mpris/mpris.cpp b/src/plugins/General/mpris/mpris.cpp
index e2a6612ee..40c43cf73 100644
--- a/src/plugins/General/mpris/mpris.cpp
+++ b/src/plugins/General/mpris/mpris.cpp
@@ -22,6 +22,7 @@
#include "playerobject.h"
#include "rootobject.h"
+#include "tracklistobject.h"
#include "mpris.h"
MPRIS::MPRIS(QObject *parent)
@@ -29,7 +30,9 @@ MPRIS::MPRIS(QObject *parent)
{
PlayerObject *player = new PlayerObject(this);
RootObject *root = new RootObject(this);
+ TrackListObject *trackList = new TrackListObject(this);
QDBusConnection connection = QDBusConnection::sessionBus();
+ connection.registerObject("/TrackList", trackList, QDBusConnection::ExportAllContents);
connection.registerObject("/Player", player, QDBusConnection::ExportAllContents);
connection.registerObject("/", root, QDBusConnection::ExportAllContents);
connection.registerService("org.mpris.qmmp");