summaryrefslogtreecommitdiff
path: root/daemon/voicecallhandler.cpp
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2014-06-25 21:50:06 +0200
committerTomasz Sterna <tomek@xiaoka.com>2014-06-25 21:50:06 +0200
commita52656164da956cc13b52fa4a99d4c475c68d4c8 (patch)
tree336164e476e6469404f0924580e45fad262e927e /daemon/voicecallhandler.cpp
parent9240163a3e2a6e24ad5ee922365144dd1f763bf4 (diff)
Fixed reading properties of VoiceCall
Diffstat (limited to 'daemon/voicecallhandler.cpp')
-rw-r--r--daemon/voicecallhandler.cpp10
1 files changed, 7 insertions, 3 deletions
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<QVariantMap> reply = d->interface->call("getProperties");
+ QDBusInterface props(d->interface->service(), d->interface->path(),
+ "org.freedesktop.DBus.Properties", d->interface->connection());
+
+ QDBusReply<QVariantMap> 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.");
}
}
}