summaryrefslogtreecommitdiffstats
path: root/network/connectionprofile.h
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-06-05 12:37:33 +0200
committerraquel medina <raquel.medina@konsulko.com>2019-06-10 10:55:23 +0000
commitd3632244d611435f48f5aeb653f9031ace9a3b20 (patch)
treedff535ea26de1483df29d5e52f91799645562d63 /network/connectionprofile.h
parent0b4be8897b1d041db9931f4726d0dbd9d03a0c58 (diff)
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 <raquel.medina@konsulko.com> Change-Id: Ic7b9d59802d13067e057948d1fb109852f35c2fd
Diffstat (limited to 'network/connectionprofile.h')
-rw-r--r--network/connectionprofile.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/network/connectionprofile.h b/network/connectionprofile.h
new file mode 100644
index 0000000..1f5bafa
--- /dev/null
+++ b/network/connectionprofile.h
@@ -0,0 +1,34 @@
+#ifndef CONNECTION_PROFILE_H
+#define CONNECTION_PROFILE_H
+
+#include <QString>
+
+class ConnectionProfile
+{
+ public:
+ ConnectionProfile(const QString &address,
+ const QString &security,
+ const QString &service,
+ const QString &ssid,
+ const QString &state,
+ const int &strength);
+ QString address() const;
+ QString service() const;
+ QString ssid() const;
+ QString security() const;
+ QString state() const;
+ int strength() const;
+ void setAddress(const QString address);
+ void setState(const QString state);
+ void setStrength(const int strength);
+
+ private:
+ QString m_address;
+ QString m_security;
+ QString m_service;
+ QString m_state;
+ QString m_ssid;
+ int m_strength;
+};
+
+#endif // CONNECTION_PROFILE_H