| 86 | |
| 87 | |
| 88 | void CCanceledFileList::Save() |
| 89 | { |
| 90 | CFile file(thePrefs::GetConfigDir() + m_filename, CFile::write); |
| 91 | if (!file.IsOpened()) { |
| 92 | return; |
| 93 | } |
| 94 | |
| 95 | try { |
| 96 | file.WriteUInt8(CANCELEDFILE_VERSION); |
| 97 | file.WriteUInt32(m_canceledFileList.size()); |
| 98 | |
| 99 | CanceledFileList::iterator it = m_canceledFileList.begin(); |
| 100 | for (; it != m_canceledFileList.end(); ++it) { |
| 101 | file.Write(it->GetHash(), 16); |
| 102 | } |
| 103 | } catch (const CIOFailureException& e) { |
| 104 | AddLogLineC(CFormat(_("Error while saving %s file: %s")) % m_filename % e.what()); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | |
| 109 | bool CCanceledFileList::IsCanceledFile(const CMD4Hash& hash) const |
nothing calls this directly
no test coverage detected