summaryrefslogtreecommitdiffstats
path: root/network/connectionprofile.h
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-09-09 00:35:55 +0200
committerraquel medina <raquel.medina@konsulko.com>2019-09-10 14:09:30 +0000
commit4221fd2f9e5b72090fe5c2c5f19aa16ab8bf68b8 (patch)
tree82a6e7e606c85e75e36cdd71c07f6f5aed802f4d /network/connectionprofile.h
parenta824dc2de24ac3789207a5fb9d89400bc83891f9 (diff)
wired: add hooks for addressing configuration
- Add new roles to provide UI clients with the active configuration (values obtained from the stack: agl-service-network binding + connman). - Add Q_INVOKABLE methods to feed new values from the UI client. SPEC-2676 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: Id239ddc549ec8471d44d56f7631d4e9e3efda798
Diffstat (limited to 'network/connectionprofile.h')
-rw-r--r--network/connectionprofile.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/network/connectionprofile.h b/network/connectionprofile.h
index 1f5bafa..92bbd0f 100644
--- a/network/connectionprofile.h
+++ b/network/connectionprofile.h
@@ -11,16 +11,33 @@ class ConnectionProfile
const QString &service,
const QString &ssid,
const QString &state,
- const int &strength);
+ const int &strength,
+ const QString &netmask,
+ const QString &gateway,
+ const QString &amethod,
+ const QString &ns,
+ const QString &nsmethod);
+
QString address() const;
QString service() const;
QString ssid() const;
QString security() const;
QString state() const;
int strength() const;
+ QString netmask() const;
+ QString gateway() const;
+ QString nameservers() const;
+ QString addrmethod() const;
+ QString nsmethod() const;
+
void setAddress(const QString address);
void setState(const QString state);
void setStrength(const int strength);
+ void setNetmask(const QString netmask);
+ void setGateway(const QString gateway);
+ void setNameservers(const QString nameservers);
+ void setAddrMethod(const QString method);
+ void setNSMethod(const QString method);
private:
QString m_address;
@@ -29,6 +46,11 @@ class ConnectionProfile
QString m_state;
QString m_ssid;
int m_strength;
+ QString m_netmask;
+ QString m_gateway;
+ QString m_addrmethod;
+ QString m_nameservers;
+ QString m_nsmethod;
};
#endif // CONNECTION_PROFILE_H