ctkDicomAbstractHost.h 880 B

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