23 #ifndef __KHIGHSCORE_H__
24 #define __KHIGHSCORE_H__
28 #include <tdemacros.h>
32 class KHighscorePrivate;
104 KHighscore(
bool forceLocal, TQObject *parent);
112 void readCurrentConfig();
124 static void init(
const char *appname);
141 bool lockForWriting(TQWidget *widget = 0);
149 void writeAndUnlock();
156 bool isLocked()
const;
171 void writeEntry(
int entry,
const TQString& key,
const TQString& value);
177 void writeEntry(
int entry,
const TQString& key,
int value);
184 void writeEntry(
int entry,
const TQString& key,
const TQVariant &value);
197 TQString readEntry(
int entry,
const TQString& key,
const TQString& pDefault = TQString())
const;
210 int readNumEntry(
int entry,
const TQString& key,
int pDefault = -1)
const;
219 TQVariant readPropertyEntry(
int entry,
const TQString &key,
const TQVariant &pDefault)
const;
225 bool hasEntry(
int entry,
const TQString& key)
const;
244 TQStringList readList(
const TQString& key,
int lastEntry = 20)
const;
257 void writeList(
const TQString& key,
const TQStringList& list);
266 bool hasTable()
const;
280 void setHighscoreGroup(
const TQString& groupname = TQString());
287 const TQString& highscoreGroup()
const;
294 TQString group()
const;
301 TDEConfig* config()
const;
303 void init(
bool forceLocal);
306 KHighscorePrivate* d;
308 static KFileLock *_lock;
309 static KRawConfig *_config;
Class for managing highscore tables.