diff options
author | Raquel Medina <raquel.medina@konsulko.com> | 2020-04-20 20:43:51 +0200 |
---|---|---|
committer | Raquel Medina <raquel.medina@konsulko.com> | 2020-04-20 21:21:54 +0200 |
commit | 61d54ea6c2a8bd27937713d7d0e49a0655246316 (patch) | |
tree | e82e72d557becece187a8fe5ef23b3e88e712997 /telephony/telephony.cpp | |
parent | 257c3fbea9d995697206e88402bebe450b027d8a (diff) |
provide QJsonValue instead of QString in call request
Bug-AGL: SPEC-3112
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Change-Id: Ice9f57422b5607e93c07c2f11dc57626e601c463
Diffstat (limited to 'telephony/telephony.cpp')
-rw-r--r-- | telephony/telephony.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/telephony/telephony.cpp b/telephony/telephony.cpp index 0660156..3efecc7 100644 --- a/telephony/telephony.cpp +++ b/telephony/telephony.cpp @@ -47,7 +47,10 @@ void Telephony::dial(QString number) return; CallMessage *tmsg = static_cast<CallMessage*>(msg.get()); - tmsg->createRequest("telephony", "dial", number); + QJsonObject parameter; + + parameter.insert("value", number); + tmsg->createRequest("telephony", "dial", parameter); m_mloop->sendMessage(std::move(msg)); } @@ -89,7 +92,9 @@ void Telephony::onConnected() return; CallMessage *tmsg = static_cast<CallMessage*>(msg.get()); - tmsg->createRequest("telephony", "subscribe", eventIterator.next()); + QJsonObject parameter; + parameter.insert("value", eventIterator.next()); + tmsg->createRequest("telephony", "subscribe", parameter); m_mloop->sendMessage(std::move(msg)); } |