Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkProvisioningInfo.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 mitkProvisioningInfo_h
14 #define mitkProvisioningInfo_h
15 
16 #include <QSet>
17 #include <QString>
18 #include <QStringList>
19 #include <QUrl>
20 
21 namespace mitk
22 {
24  {
25  public:
26  ProvisioningInfo(const QString &file);
27 
28  QStringList getPluginDirs() const;
29  QList<QUrl> getPluginsToInstall() const;
30  QList<QUrl> getPluginsToStart() const;
31 
32  private:
33  enum Keyword
34  {
35  UNKNOWN,
36  READ,
37  INSTALL,
38  START,
39  STOP
40  };
41 
42  QSet<QString> pluginDirs;
43  QList<QUrl> pluginsToInstall;
44  QList<QUrl> pluginsToStart;
45 
46  static const QString intermediateOutDir;
47 
48  void readProvisioningFile(const QString &file);
49  QUrl addPluginToInstall(const QString &file);
50  void addPluginToStart(const QString &file);
51 
52  QString substituteKeywords(const QString &value) const;
53  };
54 }
55 
56 #endif
mitk::ProvisioningInfo
Definition: mitkProvisioningInfo.h:23
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ProvisioningInfo::getPluginsToStart
QList< QUrl > getPluginsToStart() const
mitk::ProvisioningInfo::getPluginDirs
QStringList getPluginDirs() const
mitk::ProvisioningInfo::getPluginsToInstall
QList< QUrl > getPluginsToInstall() const
mitk::ProvisioningInfo::ProvisioningInfo
ProvisioningInfo(const QString &file)