ctkDicomAbstractApp.h 839 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef CTKDICOMABSTRACTAPP_H
  2. #define CTKDICOMABSTRACTAPP_H
  3. #include <ctkDicomAppInterface.h>
  4. #include <QScopedPointer>
  5. class ctkDicomAbstractAppPrivate;
  6. /**
  7. * Provide a basic implementation for an application app.
  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 ctkDicomAppInterface have to be implemented for the business logic,
  13. *
  14. */
  15. class ctkDicomAbstractApp : public ctkDicomAppInterface
  16. {
  17. public:
  18. /**
  19. * Start the soap sever on the specified port or choose port automatically.
  20. */
  21. ctkDicomAbstractApp(int port = 0);
  22. int getPort() const;
  23. private:
  24. Q_DECLARE_PRIVATE(ctkDicomAbstractApp)
  25. const QScopedPointer<ctkDicomAbstractAppPrivate> d_ptr;
  26. };
  27. #endif // CTKDICOMABSTRACTAPP_H