Medical Imaging Interaction Toolkit  2026.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 {
31  {
32  public:
39  ProvisioningInfo(const QString &file);
40 
42  QStringList getPluginDirs() const;
43 
45  QList<QUrl> getPluginsToInstall() const;
46 
48  QList<QUrl> getPluginsToStart() const;
49 
50  private:
51  enum Keyword
52  {
53  UNKNOWN,
54  READ,
55  INSTALL,
56  START,
57  STOP
58  };
59 
60  QSet<QString> pluginDirs;
61  QList<QUrl> pluginsToInstall;
62  QList<QUrl> pluginsToStart;
63 
64  static const QString intermediateOutDir;
65 
66  void readProvisioningFile(const QString &file);
67  QUrl addPluginToInstall(const QString &file);
68  void addPluginToStart(const QString &file);
69 
70  QString substituteKeywords(const QString &value) const;
71  };
72 }
73 
74 #endif
Parses a provisioning file to determine which plugins to install and start.
ProvisioningInfo(const QString &file)
Construct a ProvisioningInfo by parsing the given provisioning file.
QList< QUrl > getPluginsToStart() const
Return the list of plugin URLs that should be started after installation.
QStringList getPluginDirs() const
Return the list of directories containing discovered plugins.
QList< QUrl > getPluginsToInstall() const
Return the list of plugin URLs that should be installed.
Find image slices visible on a given plane.