diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-03-25 13:28:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2019-03-25 13:28:07 +0000 |
commit | 6e0dbd4ae1da3225f62caf17326f08b1a2cb3773 (patch) | |
tree | 21d59e94993794dded13f6bf72cc46625ca94433 /telephony/telephony.h | |
parent | c08bb24ce53e7d82eb865808a769a05fc4b49ab7 (diff) | |
parent | 5d608a916820a9e2daa2cc33d901ceba8bad5210 (diff) |
Merge "libqtappfw: telephony: add onlineChanged signal"
Diffstat (limited to 'telephony/telephony.h')
-rw-r--r-- | telephony/telephony.h | 10 |
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; |