GemRepoInfo.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 <QString>
  11. #include <QDateTime>
  12. #endif
  13. namespace O3DE::ProjectManager
  14. {
  15. class GemRepoInfo
  16. {
  17. public:
  18. GemRepoInfo() = default;
  19. GemRepoInfo(
  20. const QString& name,
  21. const QString& creator,
  22. const QDateTime& lastUpdated,
  23. bool isEnabled);
  24. bool IsValid() const;
  25. bool operator<(const GemRepoInfo& gemRepoInfo) const;
  26. enum class BadgeType
  27. {
  28. NoBadge = 0,
  29. BlueBadge,
  30. GreenBadge,
  31. NumBadgeTypes
  32. };
  33. QString m_path = "";
  34. QString m_name = "Unknown Repo Name";
  35. QString m_origin = "Unknown Creator";
  36. bool m_isEnabled = false; //! Is the repo currently enabled for this engine?
  37. QString m_summary = "No summary provided.";
  38. QString m_additionalInfo = "";
  39. QString m_directoryLink = "";
  40. QString m_repoUri = "";
  41. QDateTime m_lastUpdated;
  42. BadgeType m_badgeType = BadgeType::NoBadge;
  43. };
  44. } // namespace O3DE::ProjectManager