MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / getInkNote

Method getInkNote

sql/resourcetable.cpp:776–784  ·  view source on GitHub ↗

Get an ink note's data

Source from the content-addressed store, hash-verified

774
775// Get an ink note's data
776bool ResourceTable::getInkNote(QByteArray &value, qint32 lid) {
777 QString fileName = global.fileManager.getDbaDirPath()+QString::number(lid)+QString(".png");
778 QFile f(fileName);
779 f.open(QIODevice::ReadOnly);
780 value = f.readAll();
781 if (value.size() > 0)
782 return true;
783 return false;
784}
785
786
787// Set/unset the index needed flag

Callers

nothing calls this directly

Calls 3

getDbaDirPathMethod · 0.80
openMethod · 0.80
QStringClass · 0.50

Tested by

no test coverage detected