summaryrefslogtreecommitdiffstats
path: root/telephony/telephony.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-03-13 17:00:19 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-03-14 01:57:18 +0000
commit5d608a916820a9e2daa2cc33d901ceba8bad5210 (patch)
tree37090e1b8e9f36f4ef6692bd83aabe35768c0990 /telephony/telephony.cpp
parentdc5eea70949891012ddb7d37727955c30a2e74bb (diff)
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 <matt.ranostay@konsulko.com>
Diffstat (limited to 'telephony/telephony.cpp')
-rw-r--r--telephony/telephony.cpp5
1 files changed, 4 insertions, 1 deletions
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());
}
}
}