CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
ctkExampleHostLogic.h
Go to the documentation of this file.
1 #ifndef CTKDICOMHOSTMAINLOGIC_H
2 #define CTKDICOMHOSTMAINLOGIC_H
3 
4 #include <QObject>
5 #include <QStringList>
6 
8 
9 #include <org_commontk_dah_examplehost_Export.h>
10 
14 class ctkDICOMAppWidget;
15 class QModelIndex;
16 class QItemSelection;
17 
19 
20 class org_commontk_dah_examplehost_EXPORT ctkExampleHostLogic :
21  public QObject
22 {
23  Q_OBJECT
24 public:
25  ctkExampleHostLogic(ctkHostedAppPlaceholderWidget*, QWidget* placeHolderForControls, int hostPort = 8080, int appPort = 8081);
26  virtual ~ctkExampleHostLogic();
27  ctkExampleDicomHost* getHost();
28  ctkExampleHostControlWidget* getHostControls();
29 public slots:
30  void configureHostedApp();
31  void sendData(ctkDicomAppHosting::AvailableData& data, bool lastData);
32 protected slots:
33  void publishSelectedData();
34  void onAppReady();
35  void placeHolderResized();
36  void aboutToQuit();
37 protected:
43  QString AppFileName;
44  //bool ValidSelection;
45  bool LastData;
46  bool SendData;
47 };
48 
49 #endif
ctkExampleHostLogic::LastData
bool LastData
Definition: ctkExampleHostLogic.h:45
ctkExampleHostLogic::PlaceHolderForHostedApp
ctkHostedAppPlaceholderWidget * PlaceHolderForHostedApp
Definition: ctkExampleHostLogic.h:40
ctkDicomAppHostingTypes.h
ctkDICOMAppWidget
Definition: ctkDICOMAppWidget.h:35
ctkExampleHostLogic::Data
ctkDicomAppHosting::AvailableData * Data
Definition: ctkExampleHostLogic.h:42
ctkExampleHostLogic::Host
ctkExampleDicomHost * Host
Definition: ctkExampleHostLogic.h:38
ctkExampleHostLogic::PlaceHolderForControls
QWidget * PlaceHolderForControls
Definition: ctkExampleHostLogic.h:41
ctkExampleHostLogic::HostControls
ctkExampleHostControlWidget * HostControls
Definition: ctkExampleHostLogic.h:39
ctkExampleHostLogic
Definition: ctkExampleHostLogic.h:20
ctkHostedAppPlaceholderWidget
Definition: ctkHostedAppPlaceholderWidget.h:31
ctkExampleHostLogic::SendData
bool SendData
Definition: ctkExampleHostLogic.h:46
ctkDicomAppHosting::AvailableData
Definition: ctkDicomAppHostingTypes.h:119
ctkExampleDicomHost
Definition: ctkExampleDicomHost.h:36
ctkExampleHostControlWidget
Definition: ctkExampleHostControlWidget.h:38
ctkExampleHostLogic::AppFileName
QString AppFileName
Definition: ctkExampleHostLogic.h:43