KExtHighscore::Score Class Reference
This class contains data for a score. More...
#include <kexthighscore_item.h>
Collaboration diagram for KExtHighscore::Score:

Public Member Functions | |
Score (ScoreType type=Won) | |
ScoreType | type () const |
void | setType (ScoreType type) |
const QVariant & | data (const QString &name) const |
void | setData (const QString &name, const QVariant &value) |
uint | score () const |
void | setScore (uint score) |
bool | isTheWorst () const |
bool | operator< (const Score &score) |
Friends | |
class | MultiplayerScores |
QDataStream & | operator<< (QDataStream &stream, const Score &score) |
QDataStream & | operator>> (QDataStream &stream, Score &score) |
Detailed Description
This class contains data for a score.You should not inherit from this class but reimplement the methods in Highscores.
Definition at line 175 of file kexthighscore_item.h.
Member Function Documentation
|
Definition at line 185 of file kexthighscore_item.h. Referenced by KExtHighscore::MultiplayerScores::addScore(), and setData(). |
|
Set the game type.
Definition at line 190 of file kexthighscore_item.h. |
|
Definition at line 155 of file kexthighscore_item.cpp. |
|
Set the data associated with the named Item. Note that the value should have the type of the default value of the Item. Definition at line 161 of file kexthighscore_item.cpp. References type(). |
|
data("score").toUInt(). Definition at line 209 of file kexthighscore_item.h. Referenced by KExtHighscore::MultiplayerScores::addScore(), KExtHighscore::Manager::isStrictlyLess(), and isTheWorst(). |
|
Set the score value. Equivalent to setData("score", score). Definition at line 216 of file kexthighscore_item.h. |
|
Definition at line 168 of file kexthighscore_item.cpp. References score(). |
|
Comparison operator.
Definition at line 174 of file kexthighscore_item.cpp. |
The documentation for this class was generated from the following files: