Add set pacs settings.

This commit is contained in:
sunwen
2023-08-24 15:11:18 +08:00
parent 4cf795d368
commit 236e1e84a2
4 changed files with 87 additions and 50 deletions

View File

@@ -94,3 +94,18 @@ void ReconManager::queryReconStatus(const QStringList& aScanIDs)
}
emit queryReconStateResponsed(true, QVariant::fromValue(result));
}
void ReconManager::setPacsSettings(const QString& aClientAETitle, const QString& aServerAETitle, const QString& aServerIP, int aServerPort)
{
PACSSetting settings = {aClientAETitle.toStdString(), aServerAETitle.toStdString(), aServerIP.toStdString(), aServerPort};
auto response = mReconClient->SetPACSSetting(settings);
if(response.bad())
{
QString msg = QString("Set PACS settings failed : ") + response.error().data();
qDebug()<< msg;
emit setPacsSettingsResponsed(false, QVariant::fromValue(msg));
return;
}
emit setPacsSettingsResponsed(true, QVariant::fromValue(QString("Set PACS settings succeed.")));
}