Medical Imaging Interaction Toolkit  2018.4.99-b20efe7f
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 // MITKPROVISIONINGINFO_H
QStringList getPluginDirs() const
DataCollection - Class to facilitate loading/accessing structured data.
QList< QUrl > getPluginsToStart() const
ProvisioningInfo(const QString &file)
QList< QUrl > getPluginsToInstall() const