Other: wired 'use SSL for IMAP' toggle in bridge-gui-tester.

This commit is contained in:
Xavier Michelon
2022-10-28 11:15:23 +02:00
committed by James Houlahan
parent d9762010fa
commit f1160a11af
6 changed files with 52 additions and 2 deletions

View File

@ -634,6 +634,31 @@ Status GRPCService::IsDoHEnabled(ServerContext *, Empty const *, BoolValue *resp
}
//****************************************************************************************************************************************************
/// \param[in] request The request.
/// \return The status for the call.
//****************************************************************************************************************************************************
Status GRPCService::SetUseSslForImap(ServerContext *, BoolValue const *request, Empty *)
{
app().log().debug(__FUNCTION__);
qtProxy_.setUseSSLForIMAP(request->value());
qtProxy_.sendDelayedEvent(newUseSslForImapFinishedEvent());
return Status::OK;
}
//****************************************************************************************************************************************************
/// \param[out] response The response.
/// \return The status for the call.
//****************************************************************************************************************************************************
Status GRPCService::UseSslForImap(ServerContext *, Empty const *, BoolValue *response)
{
app().log().debug(__FUNCTION__);
response->set_value(app().mainWindow().settingsTab().useSSLForIMAP());
return Status::OK;
}
//****************************************************************************************************************************************************
/// \param[in] request The request.
/// \return The status for the call.
@ -924,5 +949,3 @@ bool GRPCService::sendEvent(SPStreamEvent const &event)
}