feat: Change httpclient logic to fit web interface change
This commit is contained in:
@@ -1215,7 +1215,7 @@ void DeviceManager::startCreateReconRecord()
|
||||
QString studyUID = record[4].toString();
|
||||
QString mppsUID = record[5].toString();
|
||||
|
||||
emit createScanToRecon(scanID, studyUID, mppsUID, referenceID, mReconTransferPath + "/" + scanID);
|
||||
emit createScanToRecon(scanID, mppsUID, referenceID, mReconTransferPath + "/" + scanID);
|
||||
}
|
||||
startTransfer();
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ signals:
|
||||
void responseEmergencyButtonReset(const QString& aResponse);
|
||||
//Recon
|
||||
void createEmptyScanToRecon(const QString& aScanID, const QString& aPath);
|
||||
void createScanToRecon(const QString& aScanID, const QString& aStudyUID,const QString& aMPPSUID, const QString& aReferenceID, const QString& aPath);
|
||||
void createScanToRecon(const QString& aScanID,const QString& aMPPSUID, const QString& aReferenceID, const QString& aPath);
|
||||
void queryScanStatusToRecon(const QStringList& aScanIDs);
|
||||
void updateReconStateFinished();
|
||||
void checkReconConnection();
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include <string>
|
||||
struct Scan{
|
||||
std::string ScanID;
|
||||
std::string StudyUID;
|
||||
std::string MPPSUID;
|
||||
std::string ReferenceID;
|
||||
std::string ReferencePath;
|
||||
|
||||
@@ -59,10 +59,6 @@ RequestResult ReconClient::Create(const Scan &aScan)
|
||||
{
|
||||
cJSON *obj = cJSON_CreateObject();
|
||||
cJSON_AddStringToObject(obj, "ScanID", aScan.ScanID.c_str());
|
||||
if (aScan.StudyUID.length()>0)
|
||||
{
|
||||
cJSON_AddStringToObject(obj, "StudyUID", aScan.StudyUID.c_str());
|
||||
}
|
||||
if (aScan.MPPSUID.length()>0)
|
||||
{
|
||||
cJSON_AddStringToObject(obj, "MPPSUID", aScan.MPPSUID.c_str());
|
||||
|
||||
@@ -50,7 +50,7 @@ void ReconManager::setReconIpAndPort(const QString& aIp, const QString& aPort)
|
||||
|
||||
void ReconManager::createEmptyScan(const QString& aScanID, const QString& aPath)
|
||||
{
|
||||
Scan empty{aScanID.toStdString(), "", "", "", aPath.toStdString(),0};
|
||||
Scan empty{aScanID.toStdString(), "", "", aPath.toStdString(),0};
|
||||
auto result = mReconClient->Create(empty);
|
||||
if(result.good())
|
||||
{
|
||||
@@ -73,9 +73,9 @@ void ReconManager::createEmptyScan(const QString& aScanID, const QString& aPath)
|
||||
}
|
||||
}
|
||||
|
||||
void ReconManager::createScan(const QString& aScanID, const QString& aStudyUID,const QString& aMPPSUID, const QString& aReferenceID, const QString& aPath)
|
||||
void ReconManager::createScan(const QString& aScanID,const QString& aMPPSUID, const QString& aReferenceID, const QString& aPath)
|
||||
{
|
||||
Scan scan{aScanID.toStdString(), aStudyUID.toStdString(), aMPPSUID.toStdString(), aReferenceID.toStdString(), aPath.toStdString(),1};
|
||||
Scan scan{aScanID.toStdString(), aMPPSUID.toStdString(), aReferenceID.toStdString(), aPath.toStdString(),1};
|
||||
auto response = mReconClient->Create(scan);
|
||||
if(response.good())
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ public:
|
||||
|
||||
public slots:
|
||||
void createEmptyScan(const QString& aScanID, const QString& aPath);
|
||||
void createScan(const QString& aScanID, const QString& aStudyUID,const QString& aMPPSUID, const QString& aReferenceID, const QString& aPath);
|
||||
void createScan(const QString& aScanID, const QString& aMPPSUID, const QString& aReferenceID, const QString& aPath);
|
||||
void queryReconStatus(const QStringList& aScanIDs);
|
||||
void setMppsSettings(bool aIsOpen, const QString& aServerAETitle, const QString& aServerIP, int aServerPort);
|
||||
void checkReconConnection();
|
||||
|
||||
Reference in New Issue
Block a user