| 1027 | } |
| 1028 | |
| 1029 | QString SQLiteDB::getRelativePath(int ohfi) |
| 1030 | { |
| 1031 | QSqlQuery query; |
| 1032 | query.prepare("SELECT path FROM sources WHERE object_id = :object_id"); |
| 1033 | query.bindValue(0, ohfi); |
| 1034 | if(!query.exec() || !query.next()) { |
| 1035 | qDebug() << query.lastError(); |
| 1036 | return NULL; |
| 1037 | } else { |
| 1038 | return query.value(0).toString(); |
| 1039 | } |
| 1040 | } |
| 1041 | |
| 1042 | bool SQLiteDB::updateObjectPath(int ohfi, const QString &name) |
| 1043 | { |