summaryrefslogtreecommitdiffstats
path: root/telephony/telephony.h
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-04-04 16:07:13 -0700
commit1cd754f9761df857b6ff6d87a2030ec81928987f (patch)
treecba3f2d8bdad6d0dc04b5a3def964247ae041ef1 /telephony/telephony.h
parentfd1810addb8bfc69c4ca3dc218f3d14e5ad3343e (diff)
libqtappfw: telephony: add onlineChanged signalguppy_7.0.1guppy/7.0.17.0.1
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.h')
-rw-r--r--telephony/telephony.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/telephony/telephony.h b/telephony/telephony.h
index 7cff598..04f55a7 100644
--- a/telephony/telephony.h
+++ b/telephony/telephony.h
@@ -27,6 +27,7 @@ class Telephony : public QObject
Q_OBJECT
Q_PROPERTY(bool connected READ connected WRITE setConnected NOTIFY connectedChanged)
Q_PROPERTY(QString callState READ callState WRITE setCallState NOTIFY callStateChanged)
+ Q_PROPERTY(bool online READ online NOTIFY onlineChanged)
Q_PROPERTY(QString callClip READ callClip)
Q_PROPERTY(QString callColp READ callColp)
@@ -49,7 +50,14 @@ class Telephony : public QObject
emit callStateChanged(m_call_state);
}
+ void setOnlineState(bool state)
+ {
+ m_online = state;
+ emit onlineChanged(state);
+ }
+
bool connected() { return m_connected; }
+ bool online() { return m_online; }
QString callState() { return m_call_state; }
QString callClip() { return m_clip; }
QString callColp() { return m_colp; }
@@ -57,9 +65,11 @@ class Telephony : public QObject
signals:
void connectedChanged(bool);
void callStateChanged(QString);
+ void onlineChanged(bool connected);
private:
bool m_connected;
+ bool m_online;
MessageEngine *m_mloop;
QString m_call_state;
QString m_clip;