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

Method getDocumentLocation

src/database/WizDatabase.cpp:3864–3888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3862}
3863
3864QString WizDatabase::getDocumentLocation(const WIZDOCUMENTDATA& doc)
3865{
3866// WIZDOCUMENTDATA doc;
3867// if (!DocumentFromGUID(doc.strGUID, doc))
3868// return QString();
3869
3870 if (!isGroup())
3871 return doc.strLocation;
3872
3873 CWizTagDataArray arrayTag;
3874 if (getDocumentTags(doc.strGUID, arrayTag))
3875 {
3876 if (arrayTag.size() > 1) {
3877 TOLOG1("Group document should only have one tag: %1", doc.strTitle);
3878 }
3879
3880 QString tagText;
3881 if (arrayTag.size()) {
3882 tagText = getTagTreeText(arrayTag[0].strGUID);
3883 }
3884 return "/" + name() + tagText + "/";
3885 }
3886
3887 return QString();
3888}
3889
3890bool WizDatabase::hasCert()
3891{

Callers 4

setDocumentMethod · 0.80
updateInfoListMethod · 0.80

Calls 3

isGroupFunction · 0.85
sizeMethod · 0.80
QStringClass · 0.70

Tested by

no test coverage detected