| 849 | |
| 850 | |
| 851 | bool SQLiteDB::insertApplicationEntry(const QString &name, int ohfi, int app_type) |
| 852 | { |
| 853 | QString title_id = QFileInfo(name).fileName(); |
| 854 | |
| 855 | QSqlQuery query; |
| 856 | query.prepare("REPLACE INTO application" |
| 857 | "(object_id, title, app_type)" |
| 858 | "VALUES (:object_id, :title, :app_type)"); |
| 859 | |
| 860 | query.bindValue(0, ohfi); |
| 861 | query.bindValue(1, title_id); |
| 862 | query.bindValue(2, app_type); |
| 863 | |
| 864 | if(!query.exec()) { |
| 865 | return false; |
| 866 | } |
| 867 | |
| 868 | return true; |
| 869 | } |
| 870 | |
| 871 | int SQLiteDB::childObjectCount(int parent_ohfi) |
| 872 | { |
nothing calls this directly
no outgoing calls
no test coverage detected