| 480 | } |
| 481 | |
| 482 | int 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 | |
| 500 | int SQLiteDB::insertNodeEntry(const QString &title, int type, int data_type) |
| 501 | { |
nothing calls this directly
no outgoing calls
no test coverage detected