Attica::Achievement Class
class Attica::AchievementRepresents an achievement. More...
Header: | #include <Attica/Achievement> |
CMake: | find_package(KF6 REQUIRED COMPONENTS Attica) target_link_libraries(mytarget PRIVATE KF6::Attica) |
Public Types
List | |
enum | Type { FlowingAchievement, SteppedAchievement, NamedstepsAchievement, SetAchievement } |
enum | Visibility { VisibleAchievement, DependentsAchievement, SecretAchievement } |
Public Functions
Achievement() | |
void | addDependency(const QString &dependency) |
void | addOption(const QString &option) |
QString | contentId() const |
QStringList | dependencies() const |
QString | description() const |
QString | explanation() const |
QString | id() const |
QUrl | image() const |
bool | isValid() const |
QString | name() const |
QStringList | options() const |
int | points() const |
QVariant | progress() const |
void | removeDependency(const QString &dependency) |
void | removeOption(const QString &option) |
void | setContentId(const QString &contentId) |
void | setDependencies(const QStringList &dependencies) |
void | setDescription(const QString &description) |
void | setExplanation(const QString &explanation) |
void | setId(const QString &id) |
void | setImage(const QUrl &image) |
void | setName(const QString &name) |
void | setOptions(const QStringList &options) |
void | setPoints(const int points) |
void | setProgress(const QVariant &progress) |
void | setSteps(const int steps) |
void | setType(Attica::Achievement::Type type) |
void | setVisibility(Attica::Achievement::Visibility visibility) |
int | steps() const |
Attica::Achievement::Type | type() const |
Attica::Achievement::Visibility | visibility() const |
Static Public Members
QString | achievementTypeToString(const Attica::Achievement::Type type) |
QString | achievementVisibilityToString(const Attica::Achievement::Visibility visibility) |
Attica::Achievement::Type | stringToAchievementType(const QString &achievementTypeString) |
Attica::Achievement::Visibility | stringToAchievementVisibility(const QString &achievementVisibilityString) |
Detailed Description
Member Type Documentation
Achievement::List
enum Achievement::Type
Constant | Value |
---|---|
Attica::Achievement::FlowingAchievement | 0 |
Attica::Achievement::SteppedAchievement | 1 |
Attica::Achievement::NamedstepsAchievement | 2 |
Attica::Achievement::SetAchievement | 3 |
enum Achievement::Visibility
Constant | Value |
---|---|
Attica::Achievement::VisibleAchievement | 0 |
Attica::Achievement::DependentsAchievement | 1 |
Attica::Achievement::SecretAchievement | 2 |
Member Function Documentation
Achievement::Achievement()
[static]
QString Achievement::achievementTypeToString(const Attica::Achievement::Type type)
[static]
QString Achievement::achievementVisibilityToString(const Attica::Achievement::Visibility visibility)
void Achievement::addDependency(const QString &dependency)
void Achievement::addOption(const QString &option)
QString Achievement::contentId() const
See also setContentId().
QStringList Achievement::dependencies() const
See also setDependencies().
QString Achievement::description() const
See also setDescription().
QString Achievement::explanation() const
See also setExplanation().
QString Achievement::id() const
See also setId().
QUrl Achievement::image() const
See also setImage().
bool Achievement::isValid() const
QString Achievement::name() const
See also setName().
QStringList Achievement::options() const
See also setOptions().
int Achievement::points() const
See also setPoints().
QVariant Achievement::progress() const
See also setProgress().
void Achievement::removeDependency(const QString &dependency)
void Achievement::removeOption(const QString &option)
void Achievement::setContentId(const QString &contentId)
See also contentId().
void Achievement::setDependencies(const QStringList &dependencies)
See also dependencies().
void Achievement::setDescription(const QString &description)
See also description().
void Achievement::setExplanation(const QString &explanation)
See also explanation().
void Achievement::setId(const QString &id)
See also id().
void Achievement::setImage(const QUrl &image)
See also image().
void Achievement::setName(const QString &name)
See also name().
void Achievement::setOptions(const QStringList &options)
See also options().
void Achievement::setPoints(const int points)
See also points().
void Achievement::setProgress(const QVariant &progress)
See also progress().
void Achievement::setSteps(const int steps)
See also steps().
void Achievement::setType(Attica::Achievement::Type type)
See also type().
void Achievement::setVisibility(Attica::Achievement::Visibility visibility)
See also visibility().
int Achievement::steps() const
See also setSteps().
[static]
Attica::Achievement::Type Achievement::stringToAchievementType(const QString &achievementTypeString)
[static]
Attica::Achievement::Visibility Achievement::stringToAchievementVisibility(const QString &achievementVisibilityString)
Attica::Achievement::Type Achievement::type() const
See also setType().
Attica::Achievement::Visibility Achievement::visibility() const
See also setVisibility().