Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkProvisioningInfo.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
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 MITKPROVISIONINGINFO_H
18 #define MITKPROVISIONINGINFO_H
19 
20 #include <QSet>
21 #include <QString>
22 #include <QStringList>
23 #include <QUrl>
24 
25 namespace mitk
26 {
28  {
29  public:
30  ProvisioningInfo(const QString &file);
31 
32  QStringList getPluginDirs() const;
33  QList<QUrl> getPluginsToInstall() const;
34  QList<QUrl> getPluginsToStart() const;
35 
36  private:
37  enum Keyword
38  {
39  UNKNOWN,
40  READ,
41  INSTALL,
42  START,
43  STOP
44  };
45 
46  QSet<QString> pluginDirs;
47  QList<QUrl> pluginsToInstall;
48  QList<QUrl> pluginsToStart;
49 
50  static const QString intermediateOutDir;
51 
52  void readProvisioningFile(const QString &file);
53  QUrl addPluginToInstall(const QString &file);
54  void addPluginToStart(const QString &file);
55 
56  QString substituteKeywords(const QString &value) const;
57  };
58 }
59 
60 #endif // MITKPROVISIONINGINFO_H
DataCollection - Class to facilitate loading/accessing structured data.
QStringList getPluginDirs() const
QList< QUrl > getPluginsToInstall() const
ProvisioningInfo(const QString &file)
QList< QUrl > getPluginsToStart() const