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

Method initDocumentData

src/database/WizDatabase.cpp:1212–1238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210}
1211
1212bool WizDatabase::initDocumentData(const QString& strGUID,
1213 WIZDOCUMENTDATAEX& data,
1214 bool forceUploadData)
1215{
1216 if (!documentFromGuid(strGUID, data)) {
1217 return false;
1218 }
1219 //
1220 getDocumentTags(strGUID, data.arrayTagGUID);
1221 //
1222 if (data.nVersion == -1)
1223 {
1224 if (data.nInfoChanged == 0 && data.nDataChanged == 0) //old data
1225 {
1226 data.nInfoChanged = 1;
1227 data.nDataChanged = 1;
1228 }
1229 }
1230
1231 if (data.nDataChanged || forceUploadData) {
1232 if (!loadDocumentZiwData(strGUID, data.arrayData)) {
1233 return false;
1234 }
1235 }
1236
1237 return true;
1238}
1239
1240bool WizDatabase::modifyAttachmentDataMd5(const QString& strGUID, const QString& md5)
1241{

Callers 1

InitDocumentDataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected