|
@@ -0,0 +1,33 @@
|
|
|
+#ifndef CTKDICOMABSTRACTHOST_H
|
|
|
+#define CTKDICOMABSTRACTHOST_H
|
|
|
+
|
|
|
+#include <ctkDicomHostInterface.h>
|
|
|
+#include <QScopedPointer>
|
|
|
+
|
|
|
+class ctkDicomAbstractHostPrivate;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Provide a basic implementation for an application host.
|
|
|
+ *
|
|
|
+ * It starts a http server and serves one hosted application. Multiple instances
|
|
|
+ * can be used for hosting multiple applications.
|
|
|
+ *
|
|
|
+ * The methods of the ctkDicomHostInterface have to be implemented for the business logic,
|
|
|
+ *
|
|
|
+ */
|
|
|
+class ctkDicomAbstractHost : public ctkDicomHostInterface
|
|
|
+{
|
|
|
+public:
|
|
|
+ /**
|
|
|
+ * Start the soap sever on the specified port or choose port automatically.
|
|
|
+ */
|
|
|
+ ctkDicomAbstractHost(int port = 0);
|
|
|
+ int getPort() const;
|
|
|
+
|
|
|
+private:
|
|
|
+ Q_DECLARE_PRIVATE(ctkDicomAbstractHost)
|
|
|
+ const QScopedPointer<ctkDicomAbstractHostPrivate> d_ptr;
|
|
|
+
|
|
|
+};
|
|
|
+
|
|
|
+#endif // CTKDICOMABSTRACTHOST_H
|