| 362 | } |
| 363 | |
| 364 | int SQLiteDB::insertObjectEntry(const QString &path, const QString &name, int parent_ohfi) |
| 365 | { |
| 366 | int ohfi; |
| 367 | int type; |
| 368 | |
| 369 | if((type = getObjectType(parent_ohfi)) == 0) { |
| 370 | return 0; |
| 371 | } |
| 372 | db.transaction(); |
| 373 | if((ohfi = insertObjectEntryInternal(path, name, parent_ohfi, type)) == 0) { |
| 374 | db.rollback(); |
| 375 | } |
| 376 | db.commit(); |
| 377 | |
| 378 | return ohfi; |
| 379 | } |
| 380 | |
| 381 | int SQLiteDB::insertObjectEntryInternal(const QString &path, const QString &name, int parent_ohfi, int root_ohfi) |
| 382 | { |
nothing calls this directly
no outgoing calls
no test coverage detected