ctkDicomAbstractApp.h 867 B

1234567891011121314151617181920212223242526272829303132333435
  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. ~ctkDicomAbstractApp();
  24. private:
  25. Q_DECLARE_PRIVATE(ctkDicomAbstractApp)
  26. const QScopedPointer<ctkDicomAbstractAppPrivate> d_ptr;
  27. };
  28. #endif // CTKDICOMABSTRACTAPP_H