MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / process_file_list_error

Method process_file_list_error

src/ui/DownloadDictionariesDialog.cpp:850–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

848}
849
850void DownloadDictionariesDialog::process_file_list_error(FtpOperationErrorType error) {
851 switch (error) {
852 case FtpOperationErrorType::none:
853 break;
854 case FtpOperationErrorType::login_failed:
855 return update_status(rc_str(IDS_STATUS_BAD_CONNECTION).c_str(), COLOR_FAIL);
856 case FtpOperationErrorType::download_failed:
857 return update_status(rc_str(IDS_STATUS_CANT_LIST_FILES).c_str(), COLOR_FAIL);
858 case FtpOperationErrorType::download_cancelled:
859 return update_status(rc_str(IDS_STATUS_DOWNLOAD_CANCELLED).c_str(), COLOR_WARN);
860 }
861}
862
863void DownloadDictionariesDialog::process_file_list_error(const FtpWebOperationError &error) {
864 switch (error.type) {

Callers 2

Calls 3

rc_strFunction · 0.85
wstring_printfFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected