ProjectInfo.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. QStringList m_userTags;
  51. QStringList m_requiredGemDependencies;
  52. QStringList m_optionalGemDependencies;
  53. // Used as temp variable for replace images
  54. QString m_newPreviewImagePath;
  55. QString m_newBackgroundImagePath;
  56. bool m_remote = false;
  57. //! Used in project creation
  58. bool m_needsBuild = false; //! Does this project need to be built
  59. bool m_buildFailed = false;
  60. QUrl m_logUrl;
  61. };
  62. } // namespace O3DE::ProjectManager