20#ifndef KEXTHIGHSCORE_H
21#define KEXTHIGHSCORE_H
23#include "kexthighscore_item.h"
31namespace KExtHighscore
38extern ManagerPrivate *internal;
43TDE_EXPORT uint gameType();
48TDE_EXPORT
void setGameType(uint gameType);
54TDE_EXPORT
bool configure(TQWidget *parent);
59TDE_EXPORT
void show(TQWidget *parent);
66TDE_EXPORT
void submitScore(
const Score &score, TQWidget *widget);
72TDE_EXPORT
Score lastScore();
78TDE_EXPORT
Score firstScore();
150 Manager(uint nbGameTypes = 1, uint maxNbEntries = 10);
196 enum ScoreTypeBound { ScoreNotBound, ScoreBound };
219 void setShowMode(ShowMode mode);
233 void setScoreType(ScoreType type);
243 enum ItemType { ScoreDefault, MeanScoreDefault, BestScoreDefault,
248 static Item *createItem(ItemType type);
256 void setScoreItem(uint worstScore,
Item *item);
263 void addScoreItem(
const TQString &name,
Item *item);
265 enum PlayerItemType { MeanScore, BestScore };
271 void setPlayerItem(PlayerItemType type, Item *item);
282 virtual bool isStrictlyLess(
const Score &s1,
const Score &s2)
const;
298 virtual TQString gameTypeLabel(uint gameType, LabelType type)
const;
323 void submitLegacyScore(
const Score &score)
const;
325 friend class ManagerPrivate;
This class defines how to convert and how to display a highscore element (such as the score,...
This class manages highscores and players entries (several players can share the same highscores list...
void setTrackDrawGames(bool track)
ShowMode
Enumerate different conditions under which to show the high score dialog.
@ AlwaysShow
Always show the dialog.
@ NeverShow
Never show the dialog.
@ ShowForHighestScore
Only for the top spot.
@ ShowForHigherScore
Show if score has improved.
ItemType
Some predefined item types.
void setTrackLostGames(bool track)
Set if the number of lost games should be track for the world-wide highscores statistics.
LabelType
Possible type of label (.
void setShowStatistics(bool show)
Manager(uint nbGameTypes=1, uint maxNbEntries=10)
Constructor.
void showStatistics(bool show) TDE_DEPRECATED
void setScoreHistogram(const TQMemArray< uint > &scores, ScoreTypeBound type)
Set the ranges for the score histogram.
virtual void convertLegacy(uint gameType)
This method is called once for each player (ie for each user).
void setShowDrawGamesStatistic(bool show)
This class contains data for a score.