summaryrefslogtreecommitdiffstats
path: root/network/networkadapter.cpp
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-06-05 12:54:02 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-06-11 15:01:45 +0000
commitb2ecc0352f09343297e2354fecb9c2c9b54d1126 (patch)
treee8908bcc9bb4be4b7b097d92a5e1f6cd733068eb /network/networkadapter.cpp
parentd3632244d611435f48f5aeb653f9031ace9a3b20 (diff)
network: rework WifiNetworkModel implementation
Rework WifiNetworkModel implementation to use AbstractNetworkModel and ConnectionProfile classes. Bug-AGL: SPEC-2293 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I47dc3dc1ef54ae24e176f8ff269b1219f3fcbc6c
Diffstat (limited to 'network/networkadapter.cpp')
-rw-r--r--network/networkadapter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/network/networkadapter.cpp b/network/networkadapter.cpp
index 2ba3cfc..6cfb9be 100644
--- a/network/networkadapter.cpp
+++ b/network/networkadapter.cpp
@@ -21,6 +21,7 @@
#include "network.h"
#include "networkadapter.h"
#include "wifinetworkmodel.h"
+#include "connectionprofile.h"
WifiAdapter::WifiAdapter(Network *network, QQmlContext *context, QObject *parent) :
QObject(parent),
@@ -93,7 +94,7 @@ bool WifiAdapter::addService(QString id, QJsonObject properties)
if (type != getType())
return false;
- WifiNetwork *network = new WifiNetwork(address, security, id, ssid, state, strength);
+ ConnectionProfile *network = new ConnectionProfile(address, security, id, state, ssid, strength);
m_model->addNetwork(network);
if ((state == "ready") || (state == "online"))