125 |
125 |
126 @return tuple containing the SSID, the password, the selected security mode |
126 @return tuple containing the SSID, the password, the selected security mode |
127 and a flag indicating to save the parameters to the settings |
127 and a flag indicating to save the parameters to the settings |
128 @rtype tuple of (str, str, int, bool) |
128 @rtype tuple of (str, str, int, bool) |
129 """ |
129 """ |
130 if self.__withIP: |
130 ifconfig = ( |
131 ifconfig = ( |
131 ( |
132 self.addressEdit.text(), |
132 self.addressEdit.text(), |
133 self.netmaskEdit.text(), |
133 self.netmaskEdit.text(), |
134 self.gatewayEdit.text(), |
134 self.gatewayEdit.text(), |
135 self.dnsEdit.text(), |
135 self.dnsEdit.text(), |
136 ) |
136 ) |
137 else: |
137 if self.__withIP |
138 ifconfig = ("", "", "", "") |
138 else ("", "", "", "") |
|
139 ) |
139 |
140 |
140 return ( |
141 return ( |
141 self.apSsidEdit.text(), |
142 self.apSsidEdit.text(), |
142 self.apPasswordEdit.text(), |
143 self.apPasswordEdit.text(), |
143 self.apSecurityComboBox.currentData(), |
144 self.apSecurityComboBox.currentData(), |