Add set pacs settings.
This commit is contained in:
@@ -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.")));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user