[SCM] ktp-kded-integration-module packaging branch, master, updated. debian/15.12.1-2-382-gbd961c2
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:15:33 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-kded-module.git;a=commitdiff;h=6f648e6
The following commit has been merged in the master branch:
commit 6f648e60afd8228cb0edbaff7b344fb93f11eaec
Author: Alexandr Akulich <akulichalexander at gmail.com>
Date: Thu Dec 12 04:06:41 2013 +0600
TelepathyMPRIS: Refactor in requestPlaybackStatus().
Use QDBusMessage instead of QDBusInterface.
BUG: 328453
REVIEW: 114415
---
telepathy-mpris.cpp | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/telepathy-mpris.cpp b/telepathy-mpris.cpp
index 93875fe..76aa893 100644
--- a/telepathy-mpris.cpp
+++ b/telepathy-mpris.cpp
@@ -160,12 +160,13 @@ void TelepathyMPRIS::newMediaPlayer(const QString &service)
void TelepathyMPRIS::requestPlaybackStatus(const QString& service)
{
- QDBusInterface mprisInterface(service,
- QLatin1String("/org/mpris/MediaPlayer2"),
- QLatin1String("org.freedesktop.DBus.Properties"));
+ QDBusMessage mprisMsg = QDBusMessage::createMethodCall(service,
+ QLatin1String("/org/mpris/MediaPlayer2"),
+ QLatin1String("org.freedesktop.DBus.Properties"),
+ QLatin1String("GetAll"));
+ mprisMsg.setArguments(QList<QVariant>() << QLatin1String("org.mpris.MediaPlayer2.Player"));
- QDBusPendingCall call = mprisInterface.asyncCall(QLatin1String("GetAll"),
- QLatin1String("org.mpris.MediaPlayer2.Player"));
+ QDBusPendingCall call = QDBusConnection::sessionBus().asyncCall(mprisMsg);
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(call, this);
connect(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)),
--
ktp-kded-integration-module packaging
More information about the pkg-kde-commits
mailing list