From 1cd754f9761df857b6ff6d87a2030ec81928987f Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Wed, 13 Mar 2019 17:00:19 -0700 Subject: libqtappfw: telephony: add onlineChanged signal Allow clients to receive Handsfree profile status to enable/disable dialpads and other functions. Bug-AGL: SPEC-2257 Change-Id: I3a614dbbdc9a75ffea103bb6b5182f48dae608b6 Signed-off-by: Matt Ranostay --- telephony/telephony.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'telephony/telephony.cpp') diff --git a/telephony/telephony.cpp b/telephony/telephony.cpp index 08b80b1..716ded7 100644 --- a/telephony/telephony.cpp +++ b/telephony/telephony.cpp @@ -66,7 +66,8 @@ void Telephony::onConnected() "callStateChanged", "dialingCall", "incomingCall", - "terminatedCall"}; + "terminatedCall", + "online"}; QStringListIterator eventIterator(events); TelephonyMessage *tmsg; @@ -103,6 +104,8 @@ void Telephony::onMessageReceived(MessageType type, Message *message) setCallState("disconnected"); m_colp = ""; m_clip = ""; + } else if (tmsg->isOnline()) { + setOnlineState(tmsg->connected()); } } } -- cgit 1.2.3-korg