From 4c257a6d66604435127d877f6f663632a63a9688 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 4 Apr 2008 19:58:49 +0000 Subject: dbus plugin: more features git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@331 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/dbuscontrol/dbusadaptor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/plugins/General/dbuscontrol/dbusadaptor.cpp') diff --git a/src/plugins/General/dbuscontrol/dbusadaptor.cpp b/src/plugins/General/dbuscontrol/dbusadaptor.cpp index 29e7f6960..86a5115ac 100644 --- a/src/plugins/General/dbuscontrol/dbusadaptor.cpp +++ b/src/plugins/General/dbuscontrol/dbusadaptor.cpp @@ -31,6 +31,7 @@ DBUSAdaptor::DBUSAdaptor(Control *ctrl, QObject *parent) connect(parent, SIGNAL(stateChanged()), SLOT (processState())); connect(parent, SIGNAL(volumeChanged()), SLOT (processVolume())); connect(parent, SIGNAL(timeChanged()), SLOT (processTime())); + connect(parent, SIGNAL(songChanged()), SIGNAL(songChanged())); } DBUSAdaptor::~DBUSAdaptor() @@ -109,6 +110,11 @@ QString DBUSAdaptor::genre() return qobject_cast(parent())->info()->genre(); } +QString DBUSAdaptor::path() +{ + return qobject_cast(parent())->info()->path(); +} + bool DBUSAdaptor::isPlaying() { return qobject_cast(parent())->state() == General::Playing; -- cgit v1.2.3-13-gbd6f