1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
#include "connectionprofile.h"
ConnectionProfile::ConnectionProfile(const QString &address,
const QString &security,
const QString &service,
const QString &state,
const QString &ssid,
const int &strength,
const QString &netmask,
const QString &gateway,
const QString &amethod,
const QString &ns,
const QString &nsmethod)
: m_address(address), m_security(security), m_service(service),
m_state(state), m_ssid(ssid), m_strength(strength), m_netmask(netmask),
m_gateway(gateway), m_addrmethod(amethod), m_nameservers(ns),
m_nsmethod(nsmethod)
{
}
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;
}
QString ConnectionProfile::netmask() const
{
return m_netmask;
}
QString ConnectionProfile::gateway() const
{
return m_gateway;
}
QString ConnectionProfile::nameservers() const
{
return m_nameservers;
}
QString ConnectionProfile::addrmethod() const
{
return m_addrmethod;
}
QString ConnectionProfile::nsmethod() const
{
return m_nsmethod;
}
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;
}
void ConnectionProfile::setNetmask(const QString netmask)
{
m_netmask = netmask;
}
void ConnectionProfile::setGateway(const QString gateway)
{
m_gateway = gateway;
}
void ConnectionProfile::setNameservers(const QString nameservers)
{
m_nameservers = nameservers;
}
void ConnectionProfile::setAddrMethod(const QString method)
{
m_addrmethod = method;
}
void ConnectionProfile::setNSMethod(const QString method)
{
m_nsmethod = method;
}
|