From a52656164da956cc13b52fa4a99d4c475c68d4c8 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Wed, 25 Jun 2014 21:50:06 +0200 Subject: Fixed reading properties of VoiceCall --- daemon/voicecallhandler.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'daemon/voicecallhandler.cpp') diff --git a/daemon/voicecallhandler.cpp b/daemon/voicecallhandler.cpp index 8e43fb3..1a006f1 100644 --- a/daemon/voicecallhandler.cpp +++ b/daemon/voicecallhandler.cpp @@ -172,10 +172,13 @@ method return sender=:1.13 -> dest=:1.150 reply_serial=2 QTimer::singleShot(2000, this, SLOT(initialize())); if(notifyError) emit this->error("Failed to connect to VCM D-Bus service."); } else { - QDBusReply reply = d->interface->call("getProperties"); + QDBusInterface props(d->interface->service(), d->interface->path(), + "org.freedesktop.DBus.Properties", d->interface->connection()); + + QDBusReply reply = props.call("GetAll", d->interface->interface()); if (reply.isValid()) { QVariantMap props = reply.value(); - qDebug() << "VoiceCallHandler::initialize:" << props; + qDebug() << props; d->providerId = props["providerId"].toString(); d->duration = props["duration"].toInt(); d->status = props["status"].toInt(); @@ -193,7 +196,8 @@ method return sender=:1.13 -> dest=:1.150 reply_serial=2 emit emergencyChanged(); emit forwardedChanged(); } else if (notifyError) { - emit this->error("Failed to getProperties() from VCM D-Bus service."); + qWarning() << "Failed to get VoiceCall properties from VCM D-Bus service."; + emit this->error("Failed to get VoiceCall properties from VCM D-Bus service."); } } } -- cgit v1.2.3