MCPcopy Create free account
hub / github.com/commontk/CTK / insertArchive

Method insertArchive

Libs/PluginFramework/ctkPluginStorageSQL.cpp:396–414  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

394
395//----------------------------------------------------------------------------
396void ctkPluginStorageSQL::insertArchive(QSharedPointer<ctkPluginArchiveSQL> pa)
397{
398 QSqlDatabase database = getConnection();
399 QSqlQuery query(database);
400
401 beginTransaction(&query, Write);
402
403 try
404 {
405 insertArchive(pa, &query);
406 }
407 catch (...)
408 {
409 rollbackTransaction(&query);
410 throw;
411 }
412
413 commitTransaction(&query);
414}
415
416//----------------------------------------------------------------------------
417void ctkPluginStorageSQL::insertArchive(QSharedPointer<ctkPluginArchiveSQL> pa, QSqlQuery* query)

Callers

nothing calls this directly

Calls 15

getLibLocationMethod · 0.80
readManifestMethod · 0.80
getPluginGenerationMethod · 0.80
getAutostartSettingMethod · 0.80
unloadMethod · 0.80
QStringClass · 0.50
loadMethod · 0.45
errorStringMethod · 0.45
openMethod · 0.45
closeMethod · 0.45
getAttributeMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected