Просмотр исходного кода

CHG: factored out new base class ctkDicomExchangeInterface

Marco Nolden лет назад: 14
Родитель
Сommit
45860c26d9

+ 3 - 0
Plugins/org.commontk.dicom.wg23.core/CMakeLists.txt

@@ -23,8 +23,11 @@ SET(PLUGIN_SRCS
 
 # Files which should be processed by Qts moc
 SET(PLUGIN_MOC_SRCS
+
   ctkDicomAppInterface.h
+  ctkDicomExchangeInterface.h
   ctkDicomHostInterface.h
+
   ctkDicomWG23CorePlugin_p.h
   ctkSimpleSoapServer.h
   ctkSoapConnectionRunnable_p.h

+ 2 - 1
Plugins/org.commontk.dicom.wg23.core/ctkDicomAppInterface.h

@@ -27,10 +27,11 @@
 #include <QRect>
 
 #include "ctkDicomWG23Types.h"
+#include "ctkDicomExchangeInterface.h"
 
 #include <org_commontk_dicom_wg23_core_Export.h>
 
-class org_commontk_dicom_wg23_core_EXPORT ctkDicomAppInterface : public QObject
+class org_commontk_dicom_wg23_core_EXPORT ctkDicomAppInterface : public ctkDicomExchangeInterface
 {
   Q_OBJECT
 

+ 51 - 0
Plugins/org.commontk.dicom.wg23.core/ctkDicomExchangeInterface.h

@@ -0,0 +1,51 @@
+/*=============================================================================
+
+  Library: CTK
+
+  Copyright (c) 2010 German Cancer Research Center,
+    Division of Medical and Biological Informatics
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+=============================================================================*/
+
+
+#ifndef ctkDicomExchangeInterface_H
+#define ctkDicomExchangeInterface_H
+
+#include <QObject>
+#include <QRect>
+
+#include "ctkDicomWG23Types.h"
+
+#include <org_commontk_dicom_wg23_core_Export.h>
+
+class org_commontk_dicom_wg23_core_EXPORT ctkDicomExchangeInterface : public QObject
+{
+  Q_OBJECT
+
+public:
+
+  // Host interface methods
+//  virtual QString generateUID() = 0;
+//  virtual QRect getAvailableScreen(const QRect& preferredScreen) = 0;
+//  virtual QString getOutputLocation(const QStringList& preferredProtocols) = 0;
+//  virtual void notifyStateChanged(ctkDicomWG23::State state) = 0;
+//  virtual void notifyStatus(const ctkDicomWG23::Status& status) = 0;
+
+  // Data exchange interface methods
+  // ...
+
+};
+
+#endif // ctkDicomExchangeInterface_H

+ 2 - 1
Plugins/org.commontk.dicom.wg23.core/ctkDicomHostInterface.h

@@ -27,10 +27,11 @@
 #include <QRect>
 
 #include "ctkDicomWG23Types.h"
+#include "ctkDicomExchangeInterface.h"
 
 #include <org_commontk_dicom_wg23_core_Export.h>
 
-class org_commontk_dicom_wg23_core_EXPORT ctkDicomHostInterface : public QObject
+class org_commontk_dicom_wg23_core_EXPORT ctkDicomHostInterface : public ctkDicomExchangeInterface
 {
   Q_OBJECT