| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -166,7 +166,7 @@ SecurityType WifiManager::getSecurityType(const QVariantMap &properties) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					void WifiManager::connect(const Network &n, const QString &password, const QString &username) { | 
					 | 
					 | 
					 | 
					void WifiManager::connect(const Network &n, const QString &password, const QString &username) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  setCurrentSsid(n.ssid); | 
					 | 
					 | 
					 | 
					  setCurrentConnecting(n.ssid); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  forgetConnection(n.ssid);  // Clear all connections that may already exist to the network we are connecting
 | 
					 | 
					 | 
					 | 
					  forgetConnection(n.ssid);  // Clear all connections that may already exist to the network we are connecting
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  Connection connection; | 
					 | 
					 | 
					 | 
					  Connection connection; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  connection["connection"]["type"] = "802-11-wireless"; | 
					 | 
					 | 
					 | 
					  connection["connection"]["type"] = "802-11-wireless"; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -231,13 +231,11 @@ void WifiManager::forgetConnection(const QString &ssid) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  } | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					void WifiManager::setCurrentSsid(const QString &connecting_ssid, const QString &connected_ssid) { | 
					 | 
					 | 
					 | 
					void WifiManager::setCurrentConnecting(const QString &ssid) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  // Allows the network connected statuses to be updated between AP refreshes
 | 
					 | 
					 | 
					 | 
					  connecting_to_network = ssid; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  for (auto &network : seenNetworks) { | 
					 | 
					 | 
					 | 
					  for (auto &network : seenNetworks) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    network.connected = (network.ssid == connecting_ssid) ? ConnectedType::CONNECTING : | 
					 | 
					 | 
					 | 
					    network.connected = (network.ssid == ssid) ? ConnectedType::CONNECTING : ConnectedType::DISCONNECTED; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                        ((network.ssid == connected_ssid) ? ConnectedType::CONNECTED : ConnectedType::DISCONNECTED); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  } | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  connecting_to_network = connecting_ssid; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  emit refreshSignal(); | 
					 | 
					 | 
					 | 
					  emit refreshSignal(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -271,8 +269,8 @@ void WifiManager::stateChange(unsigned int new_state, unsigned int previous_stat | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    forgetConnection(connecting_to_network); | 
					 | 
					 | 
					 | 
					    forgetConnection(connecting_to_network); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    emit wrongPassword(connecting_to_network); | 
					 | 
					 | 
					 | 
					    emit wrongPassword(connecting_to_network); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  } else if (new_state == NM_DEVICE_STATE_ACTIVATED) { | 
					 | 
					 | 
					 | 
					  } else if (new_state == NM_DEVICE_STATE_ACTIVATED) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ipv4_address = getIp4Address(); | 
					 | 
					 | 
					 | 
					    connecting_to_network = ""; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    setCurrentSsid("", connecting_to_network); | 
					 | 
					 | 
					 | 
					    refreshNetworks(); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  } | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -329,7 +327,7 @@ void WifiManager::initConnections() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					std::optional<QDBusPendingCall> WifiManager::activateWifiConnection(const QString &ssid) { | 
					 | 
					 | 
					 | 
					std::optional<QDBusPendingCall> WifiManager::activateWifiConnection(const QString &ssid) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const QDBusObjectPath &path = getConnectionPath(ssid); | 
					 | 
					 | 
					 | 
					  const QDBusObjectPath &path = getConnectionPath(ssid); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  if (!path.path().isEmpty()) { | 
					 | 
					 | 
					 | 
					  if (!path.path().isEmpty()) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    setCurrentSsid(ssid); | 
					 | 
					 | 
					 | 
					    setCurrentConnecting(ssid); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    return asyncCall(NM_DBUS_PATH, NM_DBUS_INTERFACE, "ActivateConnection", QVariant::fromValue(path), QVariant::fromValue(QDBusObjectPath(adapter)), QVariant::fromValue(QDBusObjectPath("/"))); | 
					 | 
					 | 
					 | 
					    return asyncCall(NM_DBUS_PATH, NM_DBUS_INTERFACE, "ActivateConnection", QVariant::fromValue(path), QVariant::fromValue(QDBusObjectPath(adapter)), QVariant::fromValue(QDBusObjectPath("/"))); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  } | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  return std::nullopt; | 
					 | 
					 | 
					 | 
					  return std::nullopt; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |