KExtHighscore::ItemArray Class Reference

Manage a bunch of Item which are saved under the same group in KHighscores config file. More...

#include <kexthighscore_internal.h>

Inheritance diagram for KExtHighscore::ItemArray:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ItemArray ()
virtual ~ItemArray ()
virtual uint nbEntries () const =0
const ItemContaineritem (const QString &name) const
ItemContaineritem (const QString &name)
void addItem (const QString &name, Item *, bool stored=true, bool canHaveSubGroup=false)
void setItem (const QString &name, Item *)
int findIndex (const QString &name) const
void setGroup (const QString &group)
void setSubGroup (const QString &subGroup)
void read (uint k, Score &data) const
void write (uint k, const Score &data, uint maxNbLines) const
void exportToText (QTextStream &) const

Detailed Description

Manage a bunch of Item which are saved under the same group in KHighscores config file.

Definition at line 128 of file kexthighscore_internal.h.


Constructor & Destructor Documentation

KExtHighscore::ItemArray::ItemArray  ) 
 

Definition at line 105 of file kexthighscore_internal.cpp.

KExtHighscore::ItemArray::~ItemArray  )  [virtual]
 

Definition at line 109 of file kexthighscore_internal.cpp.


Member Function Documentation

void KExtHighscore::ItemArray::addItem const QString &  name,
Item ,
bool  stored = true,
bool  canHaveSubGroup = false
 

Definition at line 147 of file kexthighscore_internal.cpp.

References findIndex(), and item().

Referenced by KExtHighscore::Manager::addScoreItem(), KExtHighscore::PlayerInfos::createHistoItems(), KExtHighscore::PlayerInfos::PlayerInfos(), and KExtHighscore::ScoreInfos::ScoreInfos().

Here is the call graph for this function:

void KExtHighscore::ItemArray::exportToText QTextStream &   )  const
 

Definition at line 200 of file kexthighscore_internal.cpp.

References KExtHighscore::ItemContainer::item(), item(), nbEntries(), and KExtHighscore::ItemContainer::pretty().

Here is the call graph for this function:

int KExtHighscore::ItemArray::findIndex const QString &  name  )  const
 

Definition at line 114 of file kexthighscore_internal.cpp.

Referenced by addItem(), item(), and setItem().

ItemContainer * KExtHighscore::ItemArray::item const QString &  name  ) 
 

Definition at line 129 of file kexthighscore_internal.cpp.

References findIndex().

Here is the call graph for this function:

const ItemContainer * KExtHighscore::ItemArray::item const QString &  name  )  const
 

Definition at line 121 of file kexthighscore_internal.cpp.

References findIndex().

Referenced by addItem(), KExtHighscore::PlayerInfos::comment(), exportToText(), KExtHighscore::HistogramTab::HistogramTab(), KExtHighscore::PlayerInfos::isNameUsed(), KExtHighscore::HistogramTab::load(), KExtHighscore::StatisticsTab::load(), KExtHighscore::PlayerInfos::modifyName(), KExtHighscore::PlayerInfos::modifySettings(), KExtHighscore::PlayerInfos::name(), KExtHighscore::ScoreInfos::nbEntries(), KExtHighscore::ScoreNameItem::pretty(), KExtHighscore::PlayerInfos::prettyName(), KExtHighscore::Score::Score(), setItem(), KExtHighscore::Manager::setPlayerItem(), KExtHighscore::Manager::setScoreItem(), and KExtHighscore::PlayerInfos::submitScore().

Here is the call graph for this function:

virtual uint KExtHighscore::ItemArray::nbEntries  )  const [pure virtual]
 

Implemented in KExtHighscore::ScoreInfos, and KExtHighscore::PlayerInfos.

Referenced by exportToText(), and KExtHighscore::HighscoresList::load().

void KExtHighscore::ItemArray::read uint  k,
Score data
const
 

Definition at line 183 of file kexthighscore_internal.cpp.

References KExtHighscore::Score::setData().

Referenced by KExtHighscore::ScoreInfos::nbEntries(), KExtHighscore::ManagerPrivate::readScore(), and write().

Here is the call graph for this function:

void KExtHighscore::ItemArray::setGroup const QString &  group  ) 
 

Definition at line 167 of file kexthighscore_internal.cpp.

Referenced by KExtHighscore::PlayerInfos::PlayerInfos().

void KExtHighscore::ItemArray::setItem const QString &  name,
Item
 

Definition at line 137 of file kexthighscore_internal.cpp.

References findIndex(), and item().

Referenced by KExtHighscore::Manager::setPlayerItem(), and KExtHighscore::Manager::setScoreItem().

Here is the call graph for this function:

void KExtHighscore::ItemArray::setSubGroup const QString &  subGroup  ) 
 

Definition at line 175 of file kexthighscore_internal.cpp.

void KExtHighscore::ItemArray::write uint  k,
const Score data,
uint  maxNbLines
const
 

Definition at line 191 of file kexthighscore_internal.cpp.

References KExtHighscore::Score::data(), and read().

Referenced by KExtHighscore::ManagerPrivate::submitLocal().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Aug 23 18:06:23 2006 for libkdegames by  doxygen 1.4.6