KDEGames
kgamehighscore.h
QStringList groupList() const
Returns a list of group names without the KHighscore_ prexix.
Definition kgamehighscore.cpp:288
void writeList(const QString &key, const QStringList &list)
Writes a list of entries to the highscore table.
Definition kgamehighscore.cpp:267
bool hasEntry(int entry, const QString &key) const
Definition kgamehighscore.cpp:248
void writeAndUnlock()
Effectively write and unlock the system-wide highscore file (.
Definition kgamehighscore.cpp:175
bool lockForWriting(QWidget *widget=nullptr)
Lock the system-wide highscore file for writing (does nothing and return true if the local file is us...
Definition kgamehighscore.cpp:135
void writeEntry(int entry, const QString &key, const QString &value)
Definition kgamehighscore.cpp:219
static void init(const char *appname)
This method open the system-wide highscore file using the effective group id of the game executable (...
Definition kgamehighscore.cpp:99
int readNumEntry(int entry, const QString &key, int pDefault=-1) const
Read a numeric value.
Definition kgamehighscore.cpp:241
QString readEntry(int entry, const QString &key, const QString &pDefault=QString()) const
Reads an entry from the highscore table.
Definition kgamehighscore.cpp:234
KGameHighscore(bool forceLocal=true, QObject *parent=nullptr)
Constructor.
Definition kgamehighscore.cpp:59
QStringList readList(const QString &key, int lastEntry=20) const
Reads a list of entries from the highscore table starting at 1 until lastEntry.
Definition kgamehighscore.cpp:255
bool hasTable() const
You can use this function to indicate whether KGameHighscore created a highscore table before and - i...
Definition kgamehighscore.cpp:315
void readCurrentConfig()
Read the current state of the highscore file.
Definition kgamehighscore.cpp:91
QVariant readPropertyEntry(int entry, const QString &key, const QVariant &pDefault) const
Read a QVariant entry.
Definition kgamehighscore.cpp:227
void setHighscoreGroup(const QString &groupname=QString())
Set the new highscore group.
Definition kgamehighscore.cpp:274
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Thu Jan 23 2025 18:49:14 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Thu Jan 23 2025 18:49:14 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.