+ NewAccountResult *resultData = static_cast<NewAccountResult*>(event.GetClientData());
+
+ lblServerConnResult->SetLabel((resultData->Connected ? _("Successful") : _("Failed")));
+ lblServerResponse->SetLabel((resultData->ValidResponse ? _("Yes") : _("No")));
+ if (chkUseSSL->GetValue())
+ {
+ lblServerSSLResult->SetLabel((resultData->SSLStatus ? _("Yes") : _("No")));
+ lblServerSSLValid->SetLabel((resultData->SSLVerified == COSSL_VERIFIED ? _("Yes") : _("No")));
+ } else {
+ lblServerSSLResult->SetLabel(_("Not Applicable"));
+ lblServerSSLValid->SetLabel(_("Not Applicable"));
+ }
+ lblAbleToLoginResult->SetLabel((resultData->AuthPassed ? _("Yes") : _("No")));
+ lblCalDAVSupportResult->SetLabel((resultData->CanProcess ? _("Yes") : _("No")));
+
+ if (resultData->ErrorMessage != "")
+ {
+ lblConnectionResultText->SetLabel(_("An error occured whilst connecting to the server: ") + resultData->ErrorMessage);
+ }
+
+ if (VerifyResultData(resultData))
+ {
+ lblConnectionResultText->SetLabel(_("Successfully connected to the server. Press Next to set the account name."));
+ btnNext->Enable(true);
+ }
+ else
+ {
+ btnNext->Enable(false);
+ }