Attica::Achievement

Search for usage in LXR

#include <Attica/Achievement>

Public Types

typedef QList< AchievementList
 
enum  Type { FlowingAchievement , SteppedAchievement , NamedstepsAchievement , SetAchievement }
 
enum  Visibility { VisibleAchievement , DependentsAchievement , SecretAchievement }
 

Public Member Functions

 Achievement (const Achievement &other)
 
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
 
Achievementoperator= (const Achievement &other)
 
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 (Achievement::Type type)
 
void setVisibility (Achievement::Visibility visibility)
 
int steps () const
 
Achievement::Type type () const
 
Achievement::Visibility visibility () const
 

Static Public Member Functions

static QString achievementTypeToString (const Achievement::Type type)
 
static QString achievementVisibilityToString (const Achievement::Visibility visibility)
 
static Achievement::Type stringToAchievementType (const QString &achievementTypeString)
 
static Achievement::Visibility stringToAchievementVisibility (const QString &achievementVisibilityString)
 

Detailed Description

Represents an achievement.

Definition at line 27 of file achievement.h.

Member Typedef Documentation

◆ List

Member Enumeration Documentation

◆ Type

enum Attica::Achievement::Type

Definition at line 33 of file achievement.h.

◆ Visibility

enum Attica::Achievement::Visibility

Definition at line 42 of file achievement.h.

Constructor & Destructor Documentation

◆ Achievement() [1/2]

Achievement::Achievement ( )

Definition at line 99 of file achievement.cpp.

◆ Achievement() [2/2]

Achievement::Achievement ( const Achievement & other)

Definition at line 104 of file achievement.cpp.

◆ ~Achievement()

Achievement::~Achievement ( )

Definition at line 115 of file achievement.cpp.

Member Function Documentation

◆ achievementTypeToString()

QString Achievement::achievementTypeToString ( const Achievement::Type type)
static

Definition at line 29 of file achievement.cpp.

◆ achievementVisibilityToString()

QString Achievement::achievementVisibilityToString ( const Achievement::Visibility visibility)
static

Definition at line 60 of file achievement.cpp.

◆ addDependency()

void Achievement::addDependency ( const QString & dependency)

Definition at line 194 of file achievement.cpp.

◆ addOption()

void Achievement::addOption ( const QString & option)

Definition at line 234 of file achievement.cpp.

◆ contentId()

QString Achievement::contentId ( ) const

Definition at line 134 of file achievement.cpp.

◆ dependencies()

QStringList Achievement::dependencies ( ) const

Definition at line 204 of file achievement.cpp.

◆ description()

QString Achievement::description ( ) const

Definition at line 154 of file achievement.cpp.

◆ explanation()

QString Achievement::explanation ( ) const

Definition at line 164 of file achievement.cpp.

◆ id()

QString Achievement::id ( ) const

Definition at line 124 of file achievement.cpp.

◆ image()

QUrl Achievement::image ( ) const

Definition at line 184 of file achievement.cpp.

◆ isValid()

bool Achievement::isValid ( ) const

Definition at line 269 of file achievement.cpp.

◆ name()

QString Achievement::name ( ) const

Definition at line 144 of file achievement.cpp.

◆ operator=()

Achievement & Achievement::operator= ( const Achievement & other)

Definition at line 109 of file achievement.cpp.

◆ options()

QStringList Achievement::options ( ) const

Definition at line 244 of file achievement.cpp.

◆ points()

int Achievement::points ( ) const

Definition at line 174 of file achievement.cpp.

◆ progress()

QVariant Achievement::progress ( ) const

Definition at line 264 of file achievement.cpp.

◆ removeDependency()

void Achievement::removeDependency ( const QString & dependency)

Definition at line 199 of file achievement.cpp.

◆ removeOption()

void Achievement::removeOption ( const QString & option)

Definition at line 239 of file achievement.cpp.

◆ setContentId()

void Achievement::setContentId ( const QString & contentId)

Definition at line 129 of file achievement.cpp.

◆ setDependencies()

void Achievement::setDependencies ( const QStringList & dependencies)

Definition at line 189 of file achievement.cpp.

◆ setDescription()

void Achievement::setDescription ( const QString & description)

Definition at line 149 of file achievement.cpp.

◆ setExplanation()

void Achievement::setExplanation ( const QString & explanation)

Definition at line 159 of file achievement.cpp.

◆ setId()

void Achievement::setId ( const QString & id)

Definition at line 119 of file achievement.cpp.

◆ setImage()

void Achievement::setImage ( const QUrl & image)

Definition at line 179 of file achievement.cpp.

◆ setName()

void Achievement::setName ( const QString & name)

Definition at line 139 of file achievement.cpp.

◆ setOptions()

void Achievement::setOptions ( const QStringList & options)

Definition at line 229 of file achievement.cpp.

◆ setPoints()

void Achievement::setPoints ( const int points)

Definition at line 169 of file achievement.cpp.

◆ setProgress()

void Achievement::setProgress ( const QVariant & progress)

Definition at line 259 of file achievement.cpp.

◆ setSteps()

void Achievement::setSteps ( const int steps)

Definition at line 249 of file achievement.cpp.

◆ setType()

void Achievement::setType ( Achievement::Type type)

Definition at line 219 of file achievement.cpp.

◆ setVisibility()

void Achievement::setVisibility ( Achievement::Visibility visibility)

Definition at line 209 of file achievement.cpp.

◆ steps()

int Achievement::steps ( ) const

Definition at line 254 of file achievement.cpp.

◆ stringToAchievementType()

Achievement::Type Achievement::stringToAchievementType ( const QString & achievementTypeString)
static

Definition at line 13 of file achievement.cpp.

◆ stringToAchievementVisibility()

Achievement::Visibility Achievement::stringToAchievementVisibility ( const QString & achievementVisibilityString)
static

Definition at line 46 of file achievement.cpp.

◆ type()

Achievement::Type Achievement::type ( ) const

Definition at line 224 of file achievement.cpp.

◆ visibility()

Achievement::Visibility Achievement::visibility ( ) const

Definition at line 214 of file achievement.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:05:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.