ctkExampleHostLogic.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef CTKDICOMHOSTMAINLOGIC_H
  2. #define CTKDICOMHOSTMAINLOGIC_H
  3. #include <QObject>
  4. #include <QStringList>
  5. #include "ctkDicomAppHostingTypes.h"
  6. #include <org_commontk_dah_examplehost_Export.h>
  7. class ctkHostedAppPlaceholderWidget;
  8. class ctkExampleDicomHost;
  9. class ctkExampleHostControlWidget;
  10. class ctkDICOMAppWidget;
  11. class QModelIndex;
  12. class QItemSelection;
  13. class ctkExampleDicomHost;
  14. class org_commontk_dah_examplehost_EXPORT ctkExampleHostLogic :
  15. public QObject
  16. {
  17. Q_OBJECT
  18. public:
  19. ctkExampleHostLogic(ctkHostedAppPlaceholderWidget*, QWidget* placeHolderForControls, int hostPort = 8080, int appPort = 8081);
  20. virtual ~ctkExampleHostLogic();
  21. ctkExampleDicomHost* getHost();
  22. ctkExampleHostControlWidget* getHostControls();
  23. public slots:
  24. void configureHostedApp();
  25. void sendData(ctkDicomAppHosting::AvailableData& data, bool lastData);
  26. protected slots:
  27. void publishSelectedData();
  28. void onAppReady();
  29. void placeHolderResized();
  30. void aboutToQuit();
  31. protected:
  32. ctkExampleDicomHost* Host;
  33. ctkExampleHostControlWidget* HostControls;
  34. ctkHostedAppPlaceholderWidget* PlaceHolderForHostedApp;
  35. QWidget* PlaceHolderForControls;
  36. ctkDicomAppHosting::AvailableData* Data;
  37. QString AppFileName;
  38. //bool ValidSelection;
  39. bool LastData;
  40. bool SendData;
  41. };
  42. #endif