| 5034 | } |
| 5035 | |
| 5036 | bool WizDatabase::tryAccessDocument(const WIZDOCUMENTDATA &doc) |
| 5037 | { |
| 5038 | if (doc.nProtected) { |
| 5039 | // |
| 5040 | if (!loadUserCert()) |
| 5041 | return false; |
| 5042 | // |
| 5043 | if (!QueryCertPassword()) |
| 5044 | return false; |
| 5045 | // |
| 5046 | if (!isFileAccessible(doc)) { |
| 5047 | QMessageBox::information(0, tr("Info"), tr("password error!")); |
| 5048 | // |
| 5049 | WizUserCertPassword::Instance().setPassword(bizGuid(), ""); |
| 5050 | // |
| 5051 | return false; |
| 5052 | } |
| 5053 | } |
| 5054 | return true; |
| 5055 | } |
| 5056 | |
| 5057 | |
| 5058 | QObject* WizDatabase::GetDeletedItemsFolder() |
no test coverage detected