From d3632244d611435f48f5aeb653f9031ace9a3b20 Mon Sep 17 00:00:00 2001 From: Raquel Medina Date: Wed, 5 Jun 2019 12:37:33 +0200 Subject: network: add network model abstraction - AbstractNetworkModel : abstract class which provides common functionality and data to all network models. -ConnectionProfile : super class which aglomerates connection property information, independently of the technology type (e.g. wired or wifi). A network model contains a list of available connection profiles pertinent to the model. Bug-AGL: SPEC-2293 Signed-off-by: Raquel Medina Change-Id: Ic7b9d59802d13067e057948d1fb109852f35c2fd --- network/connectionprofile.cpp | 57 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 network/connectionprofile.cpp (limited to 'network/connectionprofile.cpp') diff --git a/network/connectionprofile.cpp b/network/connectionprofile.cpp new file mode 100644 index 0000000..8e30e47 --- /dev/null +++ b/network/connectionprofile.cpp @@ -0,0 +1,57 @@ +#include "connectionprofile.h" + +ConnectionProfile::ConnectionProfile(const QString &address, + const QString &security, + const QString &service, + const QString &state, + const QString &ssid, + const int &strength) + : m_address(address), m_security(security), m_service(service), + m_state(state), m_ssid(ssid), m_strength(strength) +{ +} + +QString ConnectionProfile::address() const +{ + return m_address; +} + +QString ConnectionProfile::security() const +{ + return m_security; +} + +QString ConnectionProfile::service() const +{ + return m_service; +} + +QString ConnectionProfile::state() const +{ + return m_state; +} + +QString ConnectionProfile::ssid() const +{ + return m_ssid; +} + +int ConnectionProfile::strength() const +{ + return m_strength; +} + +void ConnectionProfile::setAddress(const QString address) +{ + m_address = address; +} + +void ConnectionProfile::setState(const QString state) +{ + m_state = state; +} + +void ConnectionProfile::setStrength(const int strength) +{ + m_strength = strength; +} -- cgit 1.2.3-korg