summaryrefslogtreecommitdiffstats
path: root/src/wifi/qwifinetworklistmodel.cpp
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@theqtcompany.com>2014-12-03 09:40:48 +0100
committerGatis Paeglis <gatis.paeglis@theqtcompany.com>2014-12-05 12:24:51 +0200
commit8d93772285f06f3e5239183a7fd8306c9d090930 (patch)
tree38525052e6497d7628214ae39a2d01705efe1505 /src/wifi/qwifinetworklistmodel.cpp
parentdaa2a8fdaf6c3cd471b776ad1282b5d32549ffd0 (diff)
Wifi - c++/qml getting started guide and wifi doc update
c++ getting started guide qml getting started guide documenting qml elements documenting c++ classes Task-number: QTEE-810 Change-Id: I669d11c65e5359fc9ec863b03b8b56ce2ef1151b Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@theqtcompany.com> Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com>
Diffstat (limited to 'src/wifi/qwifinetworklistmodel.cpp')
-rw-r--r--src/wifi/qwifinetworklistmodel.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/wifi/qwifinetworklistmodel.cpp b/src/wifi/qwifinetworklistmodel.cpp
index 7a5de2a..6f53295 100644
--- a/src/wifi/qwifinetworklistmodel.cpp
+++ b/src/wifi/qwifinetworklistmodel.cpp
@@ -43,13 +43,13 @@ QWifiNetworkListModel::~QWifiNetworkListModel()
QHash<int, QByteArray> QWifiNetworkListModel::roleNames() const
{
QHash<int, QByteArray> names;
- names.insert(QWifiManager::SSIDRole, "ssid");
- names.insert(QWifiManager::BSSIDRole, "bssid");
- names.insert(QWifiManager::SignalRole, "signalStrength");
- names.insert(QWifiManager::WPARole, "supportsWPA");
- names.insert(QWifiManager::WPA2Role, "supportsWPA2");
- names.insert(QWifiManager::WEPRole, "supportsWEP");
- names.insert(QWifiManager::WPSRole, "supportsWPS");
+ names.insert(QWifiManager::SSID, "ssid");
+ names.insert(QWifiManager::BSSID, "bssid");
+ names.insert(QWifiManager::SignalStrength, "signalStrength");
+ names.insert(QWifiManager::WPASupported, "supportsWPA");
+ names.insert(QWifiManager::WPA2Supported, "supportsWPA2");
+ names.insert(QWifiManager::WEPSupported, "supportsWEP");
+ names.insert(QWifiManager::WPSSupported, "supportsWPS");
return names;
}
@@ -58,25 +58,25 @@ QVariant QWifiNetworkListModel::data(const QModelIndex &index, int role) const
QWifiNetwork *n = m_networks.at(index.row());
switch (role) {
- case QWifiManager::SSIDRole:
+ case QWifiManager::SSID:
return n->ssid();
break;
- case QWifiManager::BSSIDRole:
+ case QWifiManager::BSSID:
return n->bssid();
break;
- case QWifiManager::SignalRole:
+ case QWifiManager::SignalStrength:
return n->signalStrength();
break;
- case QWifiManager::WPARole:
+ case QWifiManager::WPASupported:
return n->supportsWPA();
break;
- case QWifiManager::WPA2Role:
+ case QWifiManager::WPA2Supported:
return n->supportsWPA2();
break;
- case QWifiManager::WEPRole:
+ case QWifiManager::WEPSupported:
return n->supportsWEP();
break;
- case QWifiManager::WPSRole:
+ case QWifiManager::WPSSupported:
return n->supportsWPS();
break;
default: