generatordata.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef GENERATORDATA_H
  2. #define GENERATORDATA_H
  3. #include <QObject>
  4. #include <QMap>
  5. #include <QString>
  6. #include <QStringList>
  7. #include <QStringList>
  8. #include <QBitArray>
  9. class GeneratorData
  10. {
  11. public:
  12. GeneratorData();
  13. public:
  14. QMap<QString, QString> &infoPlistData() { return m_infoPlistData; }
  15. QMap<QString, QString> &configXmlData() { return m_configXmlData; }
  16. QStringList &widgetSrcFiles() { return m_widgetSrcFiles; }
  17. QStringList &pluginSrcFiles() { return m_pluginSrcFiles; }
  18. QStringList &environmentVariables() { return m_environmentVariables; }
  19. // Paths
  20. QString basePath() const;
  21. QString widgetFileName() const;
  22. QString buildDirectory() const;
  23. QString projectDirectory() const;
  24. QString widgetDirectory() const;
  25. QString fwDirectory() const;
  26. QString mwDirectory() const;
  27. /**
  28. * Directory with the Qt sources of the generated
  29. * viewer application (e.g. main.cpp, mainwindow.h/cpp) in it.
  30. * Not necessarily the same as projectDirectory.
  31. */
  32. QString srcDirectory() const;
  33. QString m5DataDirectory() const;
  34. QString m5DebianDirectory() const;
  35. void initPaths(QString projectFile,
  36. QString platformName);
  37. void clearAll();
  38. QString infoPlistValue(const QString &key) const;
  39. QString configXmlValue(const QString &key) const;
  40. bool isRemotelyCompiled() const;
  41. void setRemotelyCompiled(bool remotelyCompiled);
  42. private:
  43. QMap<QString, QString> m_infoPlistData;
  44. QMap<QString, QString> m_configXmlData;
  45. QStringList m_widgetSrcFiles;
  46. QStringList m_pluginSrcFiles;
  47. QStringList m_environmentVariables;
  48. QString m_basePath;
  49. QString m_buildDirectory;
  50. QString m_projectDirectory;
  51. QString m_widgetDirectory;
  52. QString m_fwDirectory;
  53. QString m_mwDirectory;
  54. QString m_widgetFileName;
  55. QString m_srcDirectory;
  56. QString m_m5DataDirectory;
  57. QString m_m5DebianDirectory;
  58. bool m_isRemotelyCompiled;
  59. };
  60. #endif // GENERATORDATA_H