MCPcopy Create free account
hub / github.com/codestation/qcma / insertDefaultEntry

Method insertDefaultEntry

common/sqlitedb.cpp:482–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482int SQLiteDB::insertDefaultEntry(const QString &path, const QString &name, const QString &title, int id_parent, int type)
483{
484 int ohfi = 0;
485
486 if((ohfi = insertNodeEntry(title, VITA_DIR_TYPE_MASK_REGULAR, type)) == 0) {
487 return 0;
488 }
489
490 if(id_parent >= OHFI_BASE_VALUE && !updateAdjacencyList(ohfi, id_parent)) {
491 return 0;
492 }
493
494 if(!name.isNull() && !insertSourceEntry(ohfi, path, name)) {
495 return 0;
496 }
497 return ohfi;
498}
499
500int SQLiteDB::insertNodeEntry(const QString &title, int type, int data_type)
501{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected