• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

libkdegames/highscore

Classes | Enumerations | Functions | Variables
KExtHighscore Namespace Reference

Classes

class  AdditionalTab
 
class  AskNameDialog
 
class  ConfigDialog
 
class  ConfigGroup
 
class  DateItem
 
class  HighscoresDialog
 
class  HighscoresList
 
class  HighscoresWidget
 
class  HistogramTab
 
class  Item
 
class  ItemArray
 
class  ItemContainer
 
class  LastMultipleScoresList
 
class  Manager
 
class  ManagerPrivate
 
class  MultiplayerScores
 
class  NameItem
 
class  PlayerInfos
 
class  PlayersCombo
 
class  RankItem
 
class  Score
 
class  ScoreInfos
 
class  ScoresList
 
class  ShowItem
 
class  StatisticsTab
 
class  SuccessPercentageItem
 
class  TotalMultipleScoresList
 

Enumerations

enum  ScoreType { Won = 0, Lost = -1, Draw = -2 }
 

Functions

bool configure (QWidget *parent)
 
Score firstScore ()
 
uint gameType ()
 
Score lastScore ()
 
QDataStream & operator<< (QDataStream &s, const Score &score)
 
QDataStream & operator<< (QDataStream &s, const MultiplayerScores &score)
 
QDataStream & operator>> (QDataStream &s, Score &score)
 
QDataStream & operator>> (QDataStream &s, MultiplayerScores &score)
 
void setGameType (uint gameType)
 
void show (QWidget *parent, int rank)
 
void show (QWidget *parent)
 
void submitScore (const Score &score, QWidget *widget)
 

Variables

const char * DUMMY_STRINGS []
 
const char * HS_ID = "player id"
 
const char * HS_KEY = "player key"
 
const char * HS_REGISTERED_NAME = "registered name"
 
const char * HS_WW_ENABLED = "ww hs enabled"
 
ManagerPrivate * internal = 0
 
const char * UNABLE_TO_CONTACT
 

Enumeration Type Documentation

enum KExtHighscore::ScoreType

Possible score type.

Won the game has been won. Lost the game has been lost or has been aborted. Draw the game is a draw.

Enumerator
Won 
Lost 
Draw 

Definition at line 168 of file kexthighscore_item.h.

Function Documentation

KDEGAMES_EXPORT bool KExtHighscore::configure ( QWidget *  parent)

Configure the highscores.

Returns
true if the configuration has been modified and saved

Definition at line 49 of file kexthighscore.cpp.

KDEGAMES_EXPORT Score KExtHighscore::firstScore ( )
Returns
the first score in the local list of highscores (the worst possible score if there is no entry).

Definition at line 100 of file kexthighscore.cpp.

KDEGAMES_EXPORT uint KExtHighscore::gameType ( )

Get the current game type.

Definition at line 38 of file kexthighscore.cpp.

KDEGAMES_EXPORT Score KExtHighscore::lastScore ( )
Returns
the last score in the local list of highscores. The worst possible score if there are less items than the maximum number.

Definition at line 92 of file kexthighscore.cpp.

KDEGAMES_EXPORT QDataStream & KExtHighscore::operator<< ( QDataStream &  s,
const Score &  score 
)

Definition at line 183 of file kexthighscore_item.cpp.

KDEGAMES_EXPORT QDataStream & KExtHighscore::operator<< ( QDataStream &  s,
const MultiplayerScores &  score 
)

Definition at line 307 of file kexthighscore_item.cpp.

KDEGAMES_EXPORT QDataStream & KExtHighscore::operator>> ( QDataStream &  s,
Score &  score 
)

Definition at line 190 of file kexthighscore_item.cpp.

KDEGAMES_EXPORT QDataStream & KExtHighscore::operator>> ( QDataStream &  s,
MultiplayerScores &  score 
)

Definition at line 314 of file kexthighscore_item.cpp.

KDEGAMES_EXPORT void KExtHighscore::setGameType ( uint  type)

Set the current game type.

Definition at line 44 of file kexthighscore.cpp.

void KExtHighscore::show ( QWidget *  parent,
int  rank 
)

Definition at line 59 of file kexthighscore.cpp.

KDEGAMES_EXPORT void KExtHighscore::show ( QWidget *  widget)

Show the highscores lists.

Definition at line 86 of file kexthighscore.cpp.

KDEGAMES_EXPORT void KExtHighscore::submitScore ( const Score &  score,
QWidget *  widget 
)

Submit a score.

See Manager for usage example.

Parameters
scorethe players score
widgeta widget used as parent for error message box.

Definition at line 66 of file kexthighscore.cpp.

Variable Documentation

const char* KExtHighscore::DUMMY_STRINGS[]
Initial value:
= {
I18N_NOOP("Undefined error."),
I18N_NOOP("Missing argument(s)."),
I18N_NOOP("Invalid argument(s)."),
I18N_NOOP("Unable to connect to MySQL server."),
I18N_NOOP("Unable to select database."),
I18N_NOOP("Error on database query."),
I18N_NOOP("Error on database insert."),
I18N_NOOP("Nickname already registered."),
I18N_NOOP("Nickname not registered."),
I18N_NOOP("Invalid key."),
I18N_NOOP("Invalid submit key."),
I18N_NOOP("Invalid level."),
}

Definition at line 592 of file kexthighscore_internal.cpp.

const char* KExtHighscore::HS_ID = "player id"

Definition at line 258 of file kexthighscore_internal.cpp.

const char* KExtHighscore::HS_KEY = "player key"

Definition at line 260 of file kexthighscore_internal.cpp.

const char* KExtHighscore::HS_REGISTERED_NAME = "registered name"

Definition at line 259 of file kexthighscore_internal.cpp.

const char* KExtHighscore::HS_WW_ENABLED = "ww hs enabled"

Definition at line 261 of file kexthighscore_internal.cpp.

ManagerPrivate * KExtHighscore::internal = 0

Definition at line 36 of file kexthighscore.cpp.

const char* KExtHighscore::UNABLE_TO_CONTACT
Initial value:
=
I18N_NOOP("Unable to contact world-wide highscore server")

Definition at line 611 of file kexthighscore_internal.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdegames/highscore

Skip menu "libkdegames/highscore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal