Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkXnatSessionTracker.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkXnatSessionTracker_h
14 #define mitkXnatSessionTracker_h
15 
16 #include "usServiceTracker.h"
17 
18 #include "MitkXNATExports.h"
19 
20 #include "mitkXnatSession.h"
21 
22 namespace mitk
23 {
24  class MITKXNAT_EXPORT XnatSessionTracker : public QObject, public us::ServiceTracker<ctkXnatSession>
25  {
26  Q_OBJECT
27 
28  public:
29  XnatSessionTracker(us::ModuleContext *context);
30 
31  signals:
32  void Opened(ctkXnatSession *);
33  void AboutToBeClosed(ctkXnatSession *);
34 
35  private:
37 
38  us::ModuleContext *m_Context;
39 
40  TrackedType AddingService(const ServiceReferenceType &reference) override;
41  void RemovedService(const ServiceReferenceType &reference, TrackedType tracked) override;
42 
43  private slots:
44  void SessionOpened();
45  void SessionAboutToBeClosed();
46  };
47 
48 } // end of namespace mitk
49 
50 #endif
MitkXNATExports.h
us::ServiceTracker
Definition: usServiceTracker.h:231
mitk::XnatSessionTracker
Definition: mitkXnatSessionTracker.h:24
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
us::ServiceReference
Definition: usModule.h:40
us::ServiceTrackerCustomizer::TrackedType
T TrackedType
Definition: usServiceTrackerCustomizer.h:66
usServiceTracker.h
MITKXNAT_EXPORT
#define MITKXNAT_EXPORT
Definition: MitkXNATExports.h:15
mitkXnatSession.h