MCPcopy Create free account
hub / github.com/CasparCG/client / getConfigurationByName

Method getConfigurationByName

src/Core/DatabaseManager.cpp:129–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129ConfigurationModel DatabaseManager::getConfigurationByName(const QString& name)
130{
131 QMutexLocker locker(&mutex);
132
133 QSqlQuery sql;
134 sql.prepare("SELECT c.Id, c.Name, c.Value FROM Configuration c "
135 "WHERE c.Name = :Name");
136 sql.bindValue(":Name", name);
137
138 if (!sql.exec())
139 qCritical("Failed to execute sql query: %s, Error: %s", qPrintable(sql.lastQuery()), qPrintable(sql.lastError().text()));
140
141 sql.first();
142
143 return ConfigurationModel(sql.value("Id").toInt(), sql.value("Name").toString(), sql.value("Value").toString());
144}
145
146QList<FormatModel> DatabaseManager::getFormat()
147{

Callers 15

LiveWidgetMethod · 0.80
startStreamMethod · 0.80
MainWindowMethod · 0.80
SettingsDialogMethod · 0.80
loadGpiMethod · 0.80
OscTimeWidgetMethod · 0.80
setCompactViewMethod · 0.80
DurationWidgetMethod · 0.80
RundownVolumeWidgetMethod · 0.80

Calls 1

toStringMethod · 0.80

Tested by 4

InspectorGroupWidgetMethod · 0.64
InspectorOutputWidgetMethod · 0.64
InspectorMovieWidgetMethod · 0.64