Пример #1
0
//----------------------------------------------------------------------------
const QtSoapType & ctkSimpleSoapClient::submitSoapRequest(const QString& methodName,
                                                   QtSoapType* soapType )
{
  QList<QtSoapType*> list;
  list.append(soapType);
  return submitSoapRequest(methodName,list);
}
Пример #2
0
//----------------------------------------------------------------------------
void ctkDicomExchangeService::releaseData(const QList<QUuid>& objectUUIDs)
{
  QList<QtSoapType*> list;

  list << new ctkDicomSoapArrayOfUUIDS("objects",objectUUIDs);
   submitSoapRequest("ReleaseData",list);
  return;
}
Пример #3
0
//----------------------------------------------------------------------------
QRect ctkDicomHostService::getAvailableScreen(const QRect& preferredScreen)
{
  QtSoapStruct* input = new ctkDicomSoapRectangle("preferredScreen", preferredScreen);
  const QtSoapType& result = submitSoapRequest("getAvailableScreen", input);
  QRect resultRect = ctkDicomSoapRectangle::getQRect(result);
  qDebug() << "x:" << resultRect.x() << " y:" << resultRect.y();
  return resultRect;
}
Пример #4
0
//----------------------------------------------------------------------------
QString ctkDicomHostService::getOutputLocation(const QStringList& preferredProtocols)
{
  QtSoapStruct* input = dynamic_cast<QtSoapStruct*>(
    new ctkDicomSoapArrayOfStringType("string","preferredProtocols", preferredProtocols));
  const QtSoapType& result = submitSoapRequest("getOutputLocation", input);
  QString resultString = result.value().toString();
  return resultString;
}
Пример #5
0
//----------------------------------------------------------------------------
bool ctkDicomExchangeService::notifyDataAvailable(
    const ctkDicomAppHosting::AvailableData& data, bool lastData)
{
  QList<QtSoapType*> list;
  list << new ctkDicomSoapAvailableData("data", data);
  list << new ctkDicomSoapBool("lastData", lastData);
  const QtSoapType & result = submitSoapRequest("NotifyDataAvailable",list);
  return ctkDicomSoapBool::getBool(result);
}
Пример #6
0
//----------------------------------------------------------------------------
QList<ctkDicomAppHosting::ObjectLocator> ctkDicomExchangeService::getData(
    const QList<QUuid>& objectUUIDs,
    const QList<QString>& acceptableTransferSyntaxUIDs, bool includeBulkData)
{
  //Q_D(ctkDicomService);
  QList<QtSoapType*> list;

  list << new ctkDicomSoapArrayOfUUIDS("objects",objectUUIDs);
  list << new ctkDicomSoapArrayOfStringType("UID","acceptableTransferSyntaxes", acceptableTransferSyntaxUIDs);
  list << new ctkDicomSoapBool("includeBulkData", includeBulkData);
  const QtSoapType & result = submitSoapRequest("GetData",list);
//QtSoapType *tt;
//  list << (tt=new ctkDicomSoapArrayOfUUIDS("uuids",objectUUIDs));
extern void DumpAll(const QtSoapType& type, int indent=0);
//DumpAll(*tt);
//  list << (tt=new ctkDicomSoapBool("includeBulkData", includeBulkData));
//DumpAll(*tt);
//  const QtSoapType & result = submitSoapRequest("getDataAsFile",list);
DumpAll(result); //xxx

  return ctkDicomSoapArrayOfObjectLocators::getArray(result);
}
Пример #7
0
//----------------------------------------------------------------------------
void ctkDicomHostService::notifyStatus(const ctkDicomAppHosting::Status& status)
{
  //Q_D(ctkDicomService);
  QtSoapStruct* input = new ctkDicomSoapStatus("status", status);
  submitSoapRequest("notifyStatus", input);
}
Пример #8
0
//----------------------------------------------------------------------------
void ctkDicomHostService::notifyStateChanged(ctkDicomAppHosting::State state)
{
  QtSoapType* input = new ctkDicomSoapState("newState", state); // spec would be "state", java has "newState" FIX JAVA/STANDARD
  submitSoapRequest("notifyStateChanged", input);
}
Пример #9
0
//----------------------------------------------------------------------------
QString ctkDicomHostService::generateUID()
{
  const QtSoapType& result = submitSoapRequest("generateUID", NULL);
  QString resultUID = ctkDicomSoapUID::getUID(result);
  return resultUID;
}