ProjectInfo.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 needsBuild);
  31. bool operator==(const ProjectInfo& rhs) const;
  32. bool operator!=(const ProjectInfo& rhs) const;
  33. bool IsValid() const;
  34. const QString& GetProjectDisplayName() const;
  35. //! IMPORTANT this path might be the project folder or
  36. //! the path to a remote project.json file in the cache
  37. QString m_path;
  38. //! From project.json
  39. QString m_projectName;
  40. QString m_displayName;
  41. QString m_version;
  42. QString m_engineName;
  43. QString m_enginePath;
  44. QString m_id;
  45. QString m_origin;
  46. QString m_summary;
  47. QString m_iconPath;
  48. QString m_requirements;
  49. QString m_license;
  50. QString m_restricted;
  51. QStringList m_userTags;
  52. QStringList m_requiredGemDependencies;
  53. QStringList m_optionalGemDependencies;
  54. // Used as temp variable for replace images
  55. QString m_newPreviewImagePath;
  56. QString m_newBackgroundImagePath;
  57. bool m_remote = false;
  58. //! Used in project creation
  59. bool m_needsBuild = false; //! Does this project need to be built
  60. bool m_buildFailed = false;
  61. QUrl m_logUrl;
  62. };
  63. } // namespace O3DE::ProjectManager