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);
29 public slots:
31  void sendData(ctkDicomAppHosting::AvailableData& data, bool lastData);
32 protected slots:
34  void onAppReady();
36  void aboutToQuit();
37 protected:
43  QString AppFileName;
44  //bool ValidSelection;
45  bool LastData;
46  bool SendData;
47 };
48 
49 #endif
ctkExampleHostControlWidget * HostControls
ctkDicomAppHosting::AvailableData * Data
ctkExampleHostLogic(ctkHostedAppPlaceholderWidget *, QWidget *placeHolderForControls, int hostPort=8080, int appPort=8081)
void sendData(ctkDicomAppHosting::AvailableData &data, bool lastData)
ctkExampleHostControlWidget * getHostControls()
ctkExampleDicomHost * getHost()
virtual ~ctkExampleHostLogic()
ctkExampleDicomHost * Host
ctkHostedAppPlaceholderWidget * PlaceHolderForHostedApp