summaryrefslogtreecommitdiffstats
path: root/src/qtdevicesettings/networksettingsplugin/networksettings/qnetworksettings.h
diff options
context:
space:
mode:
authorTeemu Holappa <teemu.holappa@theqtcompany.com>2016-02-03 14:23:24 +0200
committerTeemu Holappa <teemu.holappa@theqtcompany.com>2016-02-08 08:07:27 +0000
commitfb78d28b6f5107ebe16193bfbd4778bb8627bd14 (patch)
treebedb21b4888e82da576ca1b97f9913cfc14842aa /src/qtdevicesettings/networksettingsplugin/networksettings/qnetworksettings.h
parent3e8998a7d712275891905f9e75a8cd150de86877 (diff)
Merge Boot2Qt Wifi module into Network Settings Plugin.
Added wpasupplicant as alternative backend for the network settings. Change-Id: Ic05b3e87def2c9a143c30e4045a36db294ce8719 Reviewed-by: Risto Avila <risto.avila@theqtcompany.com>
Diffstat (limited to 'src/qtdevicesettings/networksettingsplugin/networksettings/qnetworksettings.h')
-rw-r--r--src/qtdevicesettings/networksettingsplugin/networksettings/qnetworksettings.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/qtdevicesettings/networksettingsplugin/networksettings/qnetworksettings.h b/src/qtdevicesettings/networksettingsplugin/networksettings/qnetworksettings.h
index 6a0604b..fdf677b 100644
--- a/src/qtdevicesettings/networksettingsplugin/networksettings/qnetworksettings.h
+++ b/src/qtdevicesettings/networksettingsplugin/networksettings/qnetworksettings.h
@@ -346,12 +346,13 @@ class QNetworkSettingsWireless : public QObject
Q_OBJECT
Q_PROPERTY(int signalStrength READ signalStrength WRITE setSignalStrength NOTIFY signalStrengthChanged)
Q_PROPERTY(bool hidden READ hidden NOTIFY hiddenChanged)
+ Q_PROPERTY(bool isOutOfRange READ outOfRange WRITE setOutOfRange NOTIFY outOfRangeChanged)
public:
explicit QNetworkSettingsWireless(QObject* parent = 0) :
QObject(parent) {
}
- enum SecurityFlags {None=1, WEP=2, WPA=4, WPA2=8, WPS=16};
+ enum SecurityFlags {None=1, WEP=2, WPA=4, WPA2=8};
Q_INVOKABLE bool supportsSecurity(SecurityFlags security) {
if (m_securityFlags & security) {
@@ -387,13 +388,24 @@ public:
}
}
+ void setOutOfRange(const bool aOutOfRange) {
+ m_isOutOfRange = aOutOfRange;
+ emit outOfRangeChanged();
+ }
+
+ bool outOfRange() const {
+ return m_isOutOfRange;
+ }
+
signals:
void hiddenChanged();
void signalStrengthChanged();
void passwordChanged();
+ void outOfRangeChanged();
private:
quint16 m_securityFlags;
bool m_hidden;
int m_signalStrength;
+ bool m_isOutOfRange;
};
#endif //QNETWORKSETTINGS_H