|
@@ -65,7 +65,7 @@ void ctkXnatAPI::parseResponse(qRestResult* restResult, const QByteArray& respon
|
|
|
{
|
|
|
// Some operations return an XML description of an object.
|
|
|
// E.g. GET query for a specific subject.
|
|
|
- restResult->setError(QString("Bad data: ") + response);
|
|
|
+ restResult->setError(qRestAPI::ResponseParseError, QString("Bad data: ") + response);
|
|
|
}
|
|
|
else if (response.startsWith("<?xml "))
|
|
|
{
|
|
@@ -89,14 +89,14 @@ void ctkXnatAPI::parseResponse(qRestResult* restResult, const QByteArray& respon
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- restResult->setError(QString("Bad data: ") + response);
|
|
|
+ restResult->setError(qRestAPI::ResponseParseError, QString("Bad data: ") + response);
|
|
|
}
|
|
|
|
|
|
restResult->setResult(result);
|
|
|
}
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
-QList<QVariantMap> ctkXnatAPI::parseXmlResponse(qRestResult* restResult, const QByteArray& response)
|
|
|
+QList<QVariantMap> ctkXnatAPI::parseXmlResponse(qRestResult* /*restResult*/, const QByteArray& /*response*/)
|
|
|
{
|
|
|
QList<QVariantMap> result;
|
|
|
return result;
|
|
@@ -117,7 +117,7 @@ QList<QVariantMap> ctkXnatAPI::parseJsonResponse(qRestResult* restResult, const
|
|
|
{
|
|
|
if (!data.toString().isEmpty())
|
|
|
{
|
|
|
- restResult->setError(QString("Bad data: ") + data.toString());
|
|
|
+ restResult->setError(qRestAPI::ResponseParseError, QString("Bad data: ") + data.toString());
|
|
|
}
|
|
|
}
|
|
|
if (data.isArray())
|