ctkDicomAbstractHost.h 966 B

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