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

Method insertApplicationEntry

common/sqlitedb.cpp:851–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

849
850
851bool 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
871int SQLiteDB::childObjectCount(int parent_ohfi)
872{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected