feat: Change Mpps settings in new recon interface.

This commit is contained in:
sunwen
2024-05-28 13:55:32 +08:00
parent 56f82a903d
commit a0feff11e2
5 changed files with 30 additions and 3 deletions

View File

@@ -135,6 +135,21 @@ void ReconManager::setPacsSettings(const QString& aClientAETitle, const QString&
emit setPacsSettingsResponsed(true, QVariant::fromValue(QString("Set PACS settings succeed.")));
}
void ReconManager::setMppsSettings(bool aIsOpen, const QString& aServerAETitle, const QString& aServerIP, int aServerPort)
{
MPPSSetting settings = {aIsOpen ? 1 : 0, aServerAETitle.toStdString(), aServerIP.toStdString(), aServerPort};
auto response = mReconClient->SetMPPSSetting(settings);
if(response.bad())
{
QString msg = QString("Set MPPS settings failed : ") + response.error().data();
qDebug()<< msg;
emit setMppsSettingsResponsed(false, QVariant::fromValue(msg));
return;
}
emit setMppsSettingsResponsed(true, QVariant::fromValue(QString("Set MPPS settings succeed.")));
}
void ReconManager::getReconVersion()
{
auto result = mReconClient->QueryVersion();