ctkDicomAbstractHost.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef CTKDICOMABSTRACTHOST_H
  2. #define CTKDICOMABSTRACTHOST_H
  3. #include <ctkDicomHostInterface.h>
  4. #include <ctkDicomAppInterface.h>
  5. #include <QScopedPointer>
  6. #include <org_commontk_dicom_wg23_host_Export.h>
  7. class ctkDicomAbstractHostPrivate;
  8. /**
  9. * Provide a basic implementation for an application host.
  10. *
  11. * It starts a http server and serves one hosted application. Multiple instances
  12. * can be used for hosting multiple applications.
  13. *
  14. * The methods of the ctkDicomHostInterface have to be implemented for the business logic,
  15. *
  16. */
  17. class org_commontk_dicom_wg23_host_EXPORT ctkDicomAbstractHost : public ctkDicomHostInterface
  18. {
  19. public:
  20. /**
  21. * Start the soap sever on the specified port or choose port automatically.
  22. */
  23. ctkDicomAbstractHost(int hostPort = 0, int appPort = 0);
  24. int getHostPort() const;
  25. int getAppPort() const;
  26. ~ctkDicomAbstractHost();
  27. ctkDicomAppInterface* getDicomAppService() const;
  28. private:
  29. Q_DECLARE_PRIVATE(ctkDicomAbstractHost)
  30. const QScopedPointer<ctkDicomAbstractHostPrivate> d_ptr;
  31. };
  32. #endif // CTKDICOMABSTRACTHOST_H