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

Method documentToTempHtmlFile

src/database/WizDatabase.cpp:4666–4677  ·  view source on GitHub ↗

! Unzip \a document to a temporary folder, and write path of "index.html" to \a strFullPathFileName variable. */

Source from the content-addressed store, hash-verified

4664 \a strFullPathFileName variable.
4665*/
4666bool WizDatabase::documentToTempHtmlFile(const WIZDOCUMENTDATA& document,
4667 QString& strFullPathFileName)
4668{
4669 QString strTempFolder = Utils::WizPathResolve::tempPath() + document.strGUID + "/";
4670 ::WizEnsurePathExists(strTempFolder);
4671
4672 if (!documentToHtmlFile(document, strTempFolder))
4673 return false;
4674
4675 strFullPathFileName = strTempFolder + "index.html";
4676 return WizPathFileExists(strFullPathFileName);
4677}
4678
4679/*!
4680 Unzip \a document to a given folder of \a strPath.

Callers 4

runMethod · 0.80
createHandwritingNoteFunction · 0.80

Calls 2

WizEnsurePathExistsFunction · 0.85
WizPathFileExistsFunction · 0.85

Tested by

no test coverage detected