ConfigTwo Class Reference

LSkat game configuration. More...

#include <config_two.h>

List of all members.

Signals

void signalInputType (int no, InputDeviceType type)
 Signal emitted when input type changes.

Public Member Functions

 ConfigTwo (QObject *parent)
 Constructor for the config.
virtual ~ConfigTwo ()
 Destructor.
void reset ()
 Reset the config data.
QHashIterator< int, Player * > playerIterator ()
 Retrieve hash iterator over players.
Playerplayer (int no)
 Retrieve a player.
InputDeviceType inputType (int no)
 Retrieve input type of given player.
void setInputType (int no, InputDeviceType type)
 Set the input type for a given players.
void save (KConfig *cfg)
 Saves the properties.
void load (KConfig *cfg)
 Read properties.


Detailed Description

LSkat game configuration.

Definition at line 41 of file config_two.h.


Constructor & Destructor Documentation

ConfigTwo::ConfigTwo QObject *  parent  ) 
 

Constructor for the config.

Parameters:
parent The parent object

Definition at line 32 of file config_two.cpp.

ConfigTwo::~ConfigTwo  )  [virtual]
 

Destructor.

Definition at line 55 of file config_two.cpp.

References player().

Here is the call graph for this function:


Member Function Documentation

InputDeviceType ConfigTwo::inputType int  no  ) 
 

Retrieve input type of given player.

Parameters:
no The player number
Returns:
The input type.

Definition at line 129 of file config_two.cpp.

Referenced by Mainwindow::menuNewLSkatGame().

void ConfigTwo::load KConfig *  cfg  ) 
 

Read properties.

Parameters:
cfg The config object.

Definition at line 89 of file config_two.cpp.

References Player::load(), player(), playerIterator(), reset(), and setInputType().

Referenced by Mainwindow::readProperties().

Here is the call graph for this function:

Player * ConfigTwo::player int  no  ) 
 

Retrieve a player.

Parameters:
no The player number
Returns:
The player.

Definition at line 113 of file config_two.cpp.

Referenced by load(), Mainwindow::menuNewLSkatGame(), Mainwindow::menuPlayerNames(), save(), Mainwindow::setInputType(), and ~ConfigTwo().

QHashIterator< int, Player * > ConfigTwo::playerIterator  ) 
 

Retrieve hash iterator over players.

Returns:
The iterator.

Definition at line 121 of file config_two.cpp.

Referenced by load(), Mainwindow::menuClearStatistics(), save(), and Mainwindow::startGame().

void ConfigTwo::reset  ) 
 

Reset the config data.

Definition at line 43 of file config_two.cpp.

References setInputType(), InputDevice::TypeAiInput, and InputDevice::TypeMouseInput.

Referenced by load(), and Mainwindow::Mainwindow().

Here is the call graph for this function:

void ConfigTwo::save KConfig *  cfg  ) 
 

Saves the properties.

Parameters:
cfg The config object.

Definition at line 69 of file config_two.cpp.

References player(), playerIterator(), and Player::save().

Referenced by Mainwindow::saveProperties().

Here is the call graph for this function:

void ConfigTwo::setInputType int  no,
InputDeviceType  type
 

Set the input type for a given players.

Parameters:
no The player number
type The input type

Definition at line 136 of file config_two.cpp.

References signalInputType().

Referenced by load(), Mainwindow::menuPlayer1By(), Mainwindow::menuPlayer2By(), and reset().

void ConfigTwo::signalInputType int  no,
InputDeviceType  type
[signal]
 

Signal emitted when input type changes.

Parameters:
no The player number
type The input type

Referenced by setInputType().


The documentation for this class was generated from the following files:
Generated on Tue May 1 09:34:40 2007 for LSkat by  doxygen 1.4.6