| 4196 | } |
| 4197 | |
| 4198 | bool WizDatabase::loadAttachmentData(const CString& strDocumentGUID, QByteArray& arrayData) |
| 4199 | { |
| 4200 | CString strFileName = getAttachmentFileName(strDocumentGUID); |
| 4201 | if (!WizPathFileExists(strFileName)) |
| 4202 | { |
| 4203 | return false; |
| 4204 | } |
| 4205 | |
| 4206 | QFile file(strFileName); |
| 4207 | if (!file.open(QFile::ReadOnly)) |
| 4208 | return false; |
| 4209 | |
| 4210 | arrayData = file.readAll(); |
| 4211 | |
| 4212 | return !arrayData.isEmpty(); |
| 4213 | } |
| 4214 | |
| 4215 | bool WizDatabase::loadCompressedAttachmentData(const QString& strGUID, QByteArray& arrayData) |
| 4216 | { |
nothing calls this directly
no test coverage detected