summaryrefslogtreecommitdiffstats
path: root/network/wifinetworkmodel.h
diff options
context:
space:
mode:
authorMatt Porter <mporter@konsulko.com>2018-07-27 11:54:56 -0400
committerMatt Porter <mporter@konsulko.com>2018-07-27 11:54:56 -0400
commit0c4d8bf4e0af08563c907148216ffdb485dd1922 (patch)
treeb6934d4d2c483a017705ab23e46f866f6c39f826 /network/wifinetworkmodel.h
parentcd445ba31ca2f4ca4cec0ce7d451f50fa6c5fa72 (diff)
network: add wifiStrength property
Add a wifiStrength property which exposes the signal strength of the currently connected network. This is intended to be used by global status indicators, such as a status bar WiFi strength indicator. Bug-AGL: SPEC-1626 Change-Id: I7285b04095bc67278c862fc363a2dfbfff57d44d Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'network/wifinetworkmodel.h')
-rw-r--r--network/wifinetworkmodel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/network/wifinetworkmodel.h b/network/wifinetworkmodel.h
index 27e635a..0df4459 100644
--- a/network/wifinetworkmodel.h
+++ b/network/wifinetworkmodel.h
@@ -58,6 +58,9 @@ class WifiNetworkModel : public QAbstractListModel
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
void updateProperties(QString service, QJsonObject properties);
+ signals:
+ void strengthChanged(int strength);
+
protected:
QHash<int, QByteArray> roleNames() const;