ctkDicomExchangeInterface.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*=============================================================================
  2. Library: CTK
  3. Copyright (c) German Cancer Research Center,
  4. Division of Medical and Biological Informatics
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. =============================================================================*/
  15. #ifndef ctkDicomExchangeInterface_H
  16. #define ctkDicomExchangeInterface_H
  17. #include <QRect>
  18. #include <QObject>
  19. #include "ctkDicomAppHostingTypes.h"
  20. struct QUuid;
  21. struct ctkDicomExchangeInterface
  22. {
  23. virtual ~ctkDicomExchangeInterface() {};
  24. // Data exchange interface methods
  25. /**
  26. * The source of the data calls this method with descriptions of the available data that it can provide to the
  27. * recipient. If the source of the data expects that additional data will become available, it shall pass FALSE
  28. * in the lastData parameter. Otherwise, it shall pass TRUE.
  29. * \return TRUE if the recipient of the data successfully received the AvailableData list.
  30. */
  31. virtual bool notifyDataAvailable(const ctkDicomAppHosting::AvailableData& data, bool lastData) = 0;
  32. virtual QList<ctkDicomAppHosting::ObjectLocator> getData(
  33. const QList<QUuid>& objectUUIDs,
  34. const QList<QString>& acceptableTransferSyntaxUIDs,
  35. bool includeBulkData) = 0;
  36. /**
  37. * The recipient of data invokes this method to release access to binary data provided by the source of the
  38. * data through a getData() call. The ArrayOfUUID identifies the data streams that the recipient is releasing.
  39. */
  40. virtual void releaseData(const QList<QUuid>& objectUUIDs) = 0;
  41. // 8.3.3 getAsModels(objectUUIDs : ArrayOfUUID, classUID : UID, supportedInfosetTypes : ArrayOfMimeType) : ModelSetDescriptor 33
  42. // 8.3.4 queryModel(models : ArrayOfUUID, xpaths : ArrayOfString) : ArrayOfQueryResult 34
  43. // 8.3.5 queryInfoset(models : ArrayOfUUID, xpaths : ArrayOfString) : ArrayOfQueryResultInfoset 34
  44. // 8.3.7 releaseModels(objectUUIDs : ArrayOfUUID): void
  45. };
  46. Q_DECLARE_INTERFACE(ctkDicomExchangeInterface, "org.commontk.dah.core.ExchangeInterface")
  47. #endif // ctkDicomExchangeInterface_H