diff options
author | Matt Porter <mporter@konsulko.com> | 2018-07-30 21:10:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2018-07-30 21:10:29 +0000 |
commit | ee58ffc1da71d296fdae869dbaaa74a1c4a6c664 (patch) | |
tree | c67348444246644e98a56076337515059560f6a1 /network/network.h | |
parent | 3f7c96d135e64e22075b640e9ee301e444cd1582 (diff) | |
parent | 0c4d8bf4e0af08563c907148216ffdb485dd1922 (diff) |
Merge "network: add wifiStrength property"flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder_5.99.3flounder/5.99.6flounder/5.99.5flounder/5.99.4flounder/5.99.35.99.65.99.55.99.45.99.3
Diffstat (limited to 'network/network.h')
-rw-r--r-- | network/network.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/network/network.h b/network/network.h index dc52dd2..499f612 100644 --- a/network/network.h +++ b/network/network.h @@ -43,9 +43,11 @@ class Network : public QObject Q_PROPERTY(bool wifiConnected READ wifiConnected NOTIFY wifiConnectedChanged) Q_PROPERTY(bool wifiEnabled READ wifiEnabled NOTIFY wifiEnabledChanged) + Q_PROPERTY(bool wifiStrength READ wifiStrength NOTIFY wifiStrengthChanged) bool wifiConnected() const { return m_wifiConnected; } bool wifiEnabled() const { return m_wifiEnabled; } + bool wifiStrength() const { return m_wifiStrength; } signals: void inputRequest(int id); @@ -53,6 +55,7 @@ class Network : public QObject void statusChanged(bool connected); void wifiConnectedChanged(bool connected); void wifiEnabledChanged(bool enabled); + void wifiStrengthChanged(int strength); private: MessageEngine *m_mloop; @@ -60,6 +63,7 @@ class Network : public QObject WifiNetworkModel *m_wifi; bool m_wifiConnected; bool m_wifiEnabled; + int m_wifiStrength; void updateWifiStatus(QJsonObject properties); void updateServiceProperties(QJsonObject data); @@ -79,6 +83,7 @@ class Network : public QObject void onConnected(); void onDisconnected(); void onMessageReceived(MessageType, Message*); + void updateWifiStrength(int); const QStringList events { "agent", |