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

Method getStack

sql/notebooktable.cpp:575–589  ·  view source on GitHub ↗

Get all notebooks for a particular stack

Source from the content-addressed store, hash-verified

573
574// Get all notebooks for a particular stack
575qint32 NotebookTable::getStack(QList<qint32> &retval, QString &stack){
576 NSqlQuery query(db);
577 db->lockForRead();
578 query.prepare("select distinct lid from DataStore where key=:key and data=:stack");
579 query.bindValue(":key", NOTEBOOK_STACK);
580 query.bindValue(":stack", stack);
581 query.exec();
582 while (query.next()) {
583 retval.append(query.value(0).toInt());
584 }
585 query.finish();
586 db->unlock();
587 return retval.size();
588
589}
590
591
592

Callers 4

newNoteMethod · 0.45
newExternalNoteMethod · 0.45
newWebcamNoteMethod · 0.45
filterStackMethod · 0.45

Calls 6

lockForReadMethod · 0.80
bindValueMethod · 0.80
valueMethod · 0.80
prepareMethod · 0.45
execMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected