feat: Add recon state in GUI.
This commit is contained in:
@@ -110,14 +110,16 @@ void ReconManager::checkReconConnection()
|
||||
emit restartCreatReconRecord();
|
||||
}
|
||||
mIsConnected = response.good();
|
||||
int state = 0;
|
||||
if (mIsConnected)
|
||||
{
|
||||
cJSON* json = cJSON_Parse(response.message().data());
|
||||
cJSON* stateProperty = cJSON_GetObjectItem(json, "State");
|
||||
int state = stateProperty->valueint;
|
||||
state = stateProperty->valueint;
|
||||
cJSON_Delete(json);
|
||||
qDebug()<<"Recon State:"<<state;
|
||||
}
|
||||
emit reconStateResponsed(mIsConnected, state);
|
||||
}
|
||||
|
||||
void ReconManager::setPacsSettings(const QString& aClientAETitle, const QString& aServerAETitle, const QString& aServerIP, int aServerPort)
|
||||
|
||||
@@ -39,6 +39,7 @@ signals:
|
||||
void setMppsSettingsResponsed(bool aResult, const QVariant& aMessage);
|
||||
void checkReconConnectionResponsed(bool aResult);
|
||||
void getReconVersionResponsed(const QString& aResult);
|
||||
void reconStateResponsed(bool aIsConnected, int aState);
|
||||
|
||||
private:
|
||||
ReconClient* mReconClient;
|
||||
|
||||
Reference in New Issue
Block a user