ProjectInfo.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #if !defined(Q_MOC_RUN)
  10. #include <QUrl>
  11. #include <QString>
  12. #include <QStringList>
  13. #endif
  14. namespace O3DE::ProjectManager
  15. {
  16. class ProjectInfo
  17. {
  18. public:
  19. ProjectInfo() = default;
  20. ProjectInfo(
  21. const QString& path,
  22. const QString& projectName,
  23. const QString& displayName,
  24. const QString& id,
  25. const QString& origin,
  26. const QString& summary,
  27. const QString& iconPath,
  28. const QString& newPreviewImagePath,
  29. const QString& newBackgroundImagePath,
  30. bool isScriptOnly,
  31. bool needsBuild);
  32. bool operator==(const ProjectInfo& rhs) const;
  33. bool operator!=(const ProjectInfo& rhs) const;
  34. bool IsValid() const;
  35. const QString& GetProjectDisplayName() const;
  36. //! IMPORTANT this path might be the project folder or
  37. //! the path to a remote project.json file in the cache
  38. QString m_path;
  39. //! From project.json
  40. QString m_projectName;
  41. QString m_displayName;
  42. QString m_version;
  43. QString m_engineName;
  44. QString m_enginePath;
  45. QString m_id;
  46. QString m_origin;
  47. QString m_summary;
  48. QString m_iconPath;
  49. QString m_requirements;
  50. QString m_license;
  51. QString m_restricted;
  52. QStringList m_userTags;
  53. QStringList m_requiredGemDependencies;
  54. QStringList m_optionalGemDependencies;
  55. // Used as temp variable for replace images
  56. QString m_newPreviewImagePath;
  57. QString m_newBackgroundImagePath;
  58. QString m_currentExportScript;
  59. QString m_expectedOutputDir;
  60. bool m_remote = false;
  61. //! Used in project creation
  62. bool m_needsBuild = false; //! Does this project need to be built
  63. bool m_buildFailed = false;
  64. //! If true, then this project must not use a compiler.
  65. //! Only pre-built gems should be added to it.
  66. bool m_isScriptOnly = false;
  67. QUrl m_logUrl;
  68. };
  69. } // namespace O3DE::ProjectManager