2
0

modstate.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. double getDownloadSizeMegabytes() const;
  37. size_t getDownloadSizeBytes() const;
  38. QString getDownloadSizeFormatted() const;
  39. QString getAuthors() const;
  40. QString getContact() const;
  41. QString getLicenseUrl() const;
  42. QString getLicenseName() const;
  43. QString getDownloadUrl() const;
  44. QPair<QString, QString> getCompatibleVersionRange() const;
  45. bool isSubmod() const;
  46. bool isCompatibility() const;
  47. bool isTranslation() const;
  48. bool isVisible() const;
  49. bool isHidden() const;
  50. bool isAvailable() const;
  51. bool isInstalled() const;
  52. bool isUpdateAvailable() const;
  53. bool isCompatible() const;
  54. bool isKeptDisabled() const;
  55. };