MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / SelectSettingsGraph

Method SelectSettingsGraph

AdaptixClient/Source/Client/Storage.cpp:428–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428void Storage::SelectSettingsGraph(SettingsData* settingsData)
429{
430 QSqlQuery query(QSqlDatabase::database(DB_CONNECTION_NAME));
431 query.prepare("SELECT data FROM Settings WHERE key = 'SettingsGraph' LIMIT 1;" );
432 if ( query.exec() && query.next()) {
433 QString data = query.value("data").toString();
434 QJsonDocument doc = QJsonDocument::fromJson(data.toUtf8());
435 QJsonObject json = doc.object();
436
437 settingsData->GraphVersion = json["version"].toString();
438 }
439}
440
441void Storage::UpdateSettingsGraph(const SettingsData &settingsData)
442{

Callers 1

LoadFromDBMethod · 0.80

Calls 2

execMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected