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

Method ExistsProject

AdaptixClient/Source/Client/Storage.cpp:180–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180bool Storage::ExistsProject(const QString &project)
181{
182 QSqlQuery query(QSqlDatabase::database(DB_CONNECTION_NAME));
183 query.prepare("SELECT 1 FROM Projects WHERE project = :Project LIMIT 1;");
184 query.bindValue(":Project", project);
185 if (!query.exec()) {
186 LogError("Failed to query projects from database: %s\n", query.lastError().text().toStdString().c_str());
187 return false;
188 }
189 return query.next();
190}
191
192void Storage::AddProject(AuthProfile profile)
193{

Callers 3

StartDialogMethod · 0.80
checkValidInputMethod · 0.80
onButton_LoadMethod · 0.80

Calls 4

LogErrorFunction · 0.85
execMethod · 0.80
toStdStringMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected