summaryrefslogtreecommitdiffstats
path: root/api/logic/meta/Version.h
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/meta/Version.h')
-rw-r--r--api/logic/meta/Version.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/api/logic/meta/Version.h b/api/logic/meta/Version.h
index 8aac8ea1..f132b861 100644
--- a/api/logic/meta/Version.h
+++ b/api/logic/meta/Version.h
@@ -72,6 +72,10 @@ public: /* con/des */
{
return m_data;
}
+ bool isRecommended() const
+ {
+ return m_recommended;
+ }
void merge(const std::shared_ptr<BaseEntity> &other) override;
void parse(const QJsonObject &obj) override;
@@ -83,6 +87,8 @@ public: // for usage by format parsers only
void setType(const QString &type);
void setTime(const qint64 time);
void setRequires(const QHash<QString, QString> &requires);
+ void setRecommended(bool recommended);
+ void setProvidesRecommendations();
void setData(const VersionFilePtr &data);
signals:
@@ -91,6 +97,8 @@ signals:
void requiresChanged();
private:
+ bool m_providesRecommendations = false;
+ bool m_recommended = false;
QString m_name;
QString m_uid;
QString m_parentUid;