| 1105 | } |
| 1106 | |
| 1107 | void Engine::logoutImplAfterDisconnect(bool keepFirewallOn) |
| 1108 | { |
| 1109 | locationsModel_->clear(); |
| 1110 | |
| 1111 | #if defined(Q_OS_MACOS) || defined(Q_OS_LINUX) |
| 1112 | firewallController_->setFirewallOnBoot(false); |
| 1113 | #endif |
| 1114 | |
| 1115 | if (isLoggedIn_) { |
| 1116 | WSNet::instance()->apiResourcersManager()->logout(); |
| 1117 | isLoggedIn_ = false; |
| 1118 | tryLoginNextConnectOrDisconnect_ = false; |
| 1119 | } |
| 1120 | |
| 1121 | GetWireGuardConfig::removeWireGuardSettings(); |
| 1122 | |
| 1123 | if (connectionManager_) { |
| 1124 | connectionManager_->removeIkev2ConnectionFromOS(); |
| 1125 | } |
| 1126 | |
| 1127 | if (!keepFirewallOn) |
| 1128 | { |
| 1129 | firewallController_->firewallOff(); |
| 1130 | emit firewallStateChanged(false); |
| 1131 | } |
| 1132 | |
| 1133 | emit logoutFinished(); |
| 1134 | } |
| 1135 | |
| 1136 | void Engine::continueWithUsernameAndPasswordImpl(const QString &username, const QString &password, bool bSave) |
| 1137 | { |
nothing calls this directly
no test coverage detected