MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / tryAccessDocument

Method tryAccessDocument

src/database/WizDatabase.cpp:5036–5055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5034}
5035
5036bool 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
5058QObject* WizDatabase::GetDeletedItemsFolder()

Callers 1

copyDocumentToMethod · 0.80

Calls 1

setPasswordMethod · 0.45

Tested by

no test coverage detected