Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKXNATSESSIONTRACKER_H
18 #define MITKXNATSESSIONTRACKER_H
19 
20 #include "usServiceTracker.h"
21 
22 #include "MitkXNATExports.h"
23 
24 #include "mitkXnatSession.h"
25 
26 namespace mitk
27 {
28  class MITKXNAT_EXPORT XnatSessionTracker : public QObject, public us::ServiceTracker<ctkXnatSession>
29  {
30  Q_OBJECT
31 
32  public:
33  XnatSessionTracker(us::ModuleContext *context);
34 
35  signals:
36  void Opened(ctkXnatSession *);
37  void AboutToBeClosed(ctkXnatSession *);
38 
39  private:
41 
42  us::ModuleContext *m_Context;
43 
44  virtual TrackedType AddingService(const ServiceReferenceType &reference) override;
45  virtual void RemovedService(const ServiceReferenceType &reference, TrackedType tracked) override;
46 
47  private slots:
48  void SessionOpened();
49  void SessionAboutToBeClosed();
50  };
51 
52 } // end of namespace mitk
53 
54 #endif // MITKXNATSESSIONTRACKER_H
DataCollection - Class to facilitate loading/accessing structured data.
itkEventMacroDeclaration(FocusChangedEvent, itk::AnyEvent) class MITKCORE_EXPORT TestingRenderingManager typedef RenderingManager Superclass
#define MITKXNAT_EXPORT