| 274 | } |
| 275 | |
| 276 | void Storage::AddExtension(const ExtensionFile &extFile) |
| 277 | { |
| 278 | QSqlQuery query(QSqlDatabase::database(DB_CONNECTION_NAME)); |
| 279 | query.prepare( "INSERT INTO Extensions (filepath, enabled) VALUES (:Filepath, :Enabled);"); |
| 280 | query.bindValue(":Filepath", extFile.FilePath.toStdString().c_str()); |
| 281 | query.bindValue(":Enabled", extFile.Enabled); |
| 282 | if (!query.exec()) |
| 283 | LogError("The extension has not been added to the database: %s\n", query.lastError().text().toStdString().c_str()); |
| 284 | } |
| 285 | |
| 286 | void Storage::UpdateExtension(const ExtensionFile &extFile) |
| 287 | { |
no test coverage detected