ctkExampleDicomAppLogic_p.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 CTKEXAMPLEDICOMAPPLOGIC_P_H
  16. #define CTKEXAMPLEDICOMAPPLOGIC_P_H
  17. #include <ctkDicomAppInterface.h>
  18. #include <ctkDicomHostInterface.h>
  19. #include <ctkServiceTracker.h>
  20. struct ctkDicomHostInterface;
  21. class ctkExampleDicomAppLogic : public QObject, public ctkDicomAppInterface
  22. {
  23. Q_OBJECT
  24. Q_INTERFACES(ctkDicomAppInterface)
  25. public:
  26. ctkExampleDicomAppLogic();
  27. ~ctkExampleDicomAppLogic();
  28. // ctkDicomAppInterface
  29. ctkDicomAppHosting::State getState();
  30. bool setState(ctkDicomAppHosting::State newState);
  31. bool bringToFront(const QRect& requestedScreenArea);
  32. // ctkDicomExchangeInterface
  33. bool notifyDataAvailable(ctkDicomAppHosting::AvailableData data, bool lastData);
  34. QList<ctkDicomAppHosting::ObjectLocator> getData(
  35. QList<QUuid> objectUUIDs,
  36. QList<QString> acceptableTransferSyntaxUIDs,
  37. bool includeBulkData);
  38. void releaseData(QList<QUuid> objectUUIDs);
  39. // some logic
  40. void do_something();
  41. signals:
  42. void stateChanged(int);
  43. protected slots:
  44. void changeState(int);
  45. private:
  46. ctkDicomHostInterface* getHostInterface() const;
  47. ctkServiceTracker<ctkDicomHostInterface*> hostTracker;
  48. }; // ctkExampleDicomAppLogic
  49. #endif // ctkExampleDicomAppLogic_P_H