9#ifndef ATTICA_ACHIEVEMENT_H
10#define ATTICA_ACHIEVEMENT_H
12#include "attica_export.h"
14#include <QSharedDataPointer>
36 NamedstepsAchievement,
39 static Achievement::Type stringToAchievementType(
const QString &achievementTypeString);
40 static QString achievementTypeToString(
const Achievement::Type type);
44 DependentsAchievement,
47 static Achievement::Visibility stringToAchievementVisibility(
const QString &achievementVisibilityString);
48 static QString achievementVisibilityToString(
const Achievement::Visibility visibility);
58 void setContentId(
const QString &contentId);
61 void setName(
const QString &name);
64 void setDescription(
const QString &description);
67 void setExplanation(
const QString &explanation);
70 void setPoints(
const int points);
73 void setImage(
const QUrl &image);
76 void setDependencies(
const QStringList &dependencies);
77 void addDependency(
const QString &dependency);
78 void removeDependency(
const QString &dependency);
81 void setVisibility(Achievement::Visibility visibility);
82 Achievement::Visibility visibility()
const;
84 void setType(Achievement::Type type);
85 Achievement::Type type()
const;
88 void addOption(
const QString &option);
89 void removeOption(
const QString &option);
92 void setSteps(
const int steps);
95 void setProgress(
const QVariant &progress);
Represents an achievement.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:36 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.