summaryrefslogtreecommitdiffstats
path: root/telephony/telephony.cpp
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-03-25 13:28:07 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2019-03-25 13:28:07 +0000
commit6e0dbd4ae1da3225f62caf17326f08b1a2cb3773 (patch)
tree21d59e94993794dded13f6bf72cc46625ca94433 /telephony/telephony.cpp
parentc08bb24ce53e7d82eb865808a769a05fc4b49ab7 (diff)
parent5d608a916820a9e2daa2cc33d901ceba8bad5210 (diff)
Merge "libqtappfw: telephony: add onlineChanged signal"
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());
}
}
}