modstate.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * modstate.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. VCMI_LIB_NAMESPACE_BEGIN
  12. class ModDescription;
  13. VCMI_LIB_NAMESPACE_END
  14. /// Class that represent current state of mod in Launcher
  15. /// Provides Qt-based interface to library class ModDescription
  16. class ModState
  17. {
  18. const ModDescription & impl;
  19. public:
  20. explicit ModState(const ModDescription & impl);
  21. QString getName() const;
  22. QString getType() const;
  23. QString getDescription() const;
  24. QString getID() const;
  25. QString getParentID() const;
  26. QString getTopParentID() const;
  27. QStringList getDependencies() const;
  28. QStringList getConflicts() const;
  29. QStringList getScreenshots() const;
  30. QString getBaseLanguage() const;
  31. QStringList getSupportedLanguages() const;
  32. QMap<QString, QStringList> getChangelog() const;
  33. QString getInstalledVersion() const;
  34. QString getRepositoryVersion() const;
  35. QString getVersion() const;
  36. int getGithubStars() const;
  37. double getDownloadSizeMegabytes() const;
  38. size_t getDownloadSizeBytes() const;
  39. QString getDownloadSizeFormatted() const;
  40. QString getAuthors() const;
  41. QString getContact() const;
  42. QString getLicenseUrl() const;
  43. QString getLicenseName() const;
  44. QString getDownloadUrl() const;
  45. QPair<QString, QString> getCompatibleVersionRange() const;
  46. bool isSubmod() const;
  47. bool isCompatibility() const;
  48. bool isTranslation() const;
  49. bool isVisible() const;
  50. bool isHidden() const;
  51. bool isAvailable() const;
  52. bool isInstalled() const;
  53. bool isUpdateAvailable() const;
  54. bool isCompatible() const;
  55. bool isKeptDisabled() const;
  56. };