Prefs Class Reference

#include <prefs.h>

Collaboration diagram for Prefs:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ~Prefs ()

Static Public Member Functions

static Prefsself ()
static int port ()
 Get Network connection port.
static QString gamename ()
 Get Game name.
static QString host ()
 Get Network connection host.
static int level ()
 Get Change the strength of the computer player.
static QString name1 ()
 Get Player 1 name.
static QString name2 ()
 Get Player 2 name.
static int input1 ()
 Get Input1.
static int input2 ()
 Get Input2.
static int colour1 ()
 Get Colour1.
static void writeConfig ()

Protected Member Functions

 Prefs ()

Protected Attributes

int mPort
QString mGamename
QString mHost
int mLevel
QString mName1
QString mName2
int mInput1
int mInput2
int mColour1

Static Protected Attributes

static PrefsmSelf = 0

Detailed Description

Definition at line 9 of file prefs.h.


Constructor & Destructor Documentation

Prefs::~Prefs  ) 
 

Definition at line 58 of file prefs.cpp.

References mSelf.

Prefs::Prefs  )  [protected]
 

Definition at line 21 of file prefs.cpp.

References mColour1, mGamename, mHost, mInput1, mInput2, mLevel, mName1, mName2, mPort, and mSelf.

Referenced by self().


Member Function Documentation

static int Prefs::colour1  )  [inline, static]
 

Get Colour1.

Definition at line 101 of file prefs.h.

References mColour1.

Referenced by KWin4Doc::loadSettings().

static QString Prefs::gamename  )  [inline, static]
 

Get Game name.

Definition at line 31 of file prefs.h.

References mGamename.

static QString Prefs::host  )  [inline, static]
 

Get Network connection host.

Definition at line 41 of file prefs.h.

References mHost.

static int Prefs::input1  )  [inline, static]
 

Get Input1.

Definition at line 81 of file prefs.h.

References mInput1.

Referenced by KWin4Doc::loadSettings().

static int Prefs::input2  )  [inline, static]
 

Get Input2.

Definition at line 91 of file prefs.h.

References mInput2.

Referenced by KWin4Doc::loadSettings().

static int Prefs::level  )  [inline, static]
 

Get Change the strength of the computer player.

Definition at line 51 of file prefs.h.

References mLevel.

Referenced by KWin4Doc::loadSettings(), and KWin4Doc::prepareGameMessage().

static QString Prefs::name1  )  [inline, static]
 

Get Player 1 name.

Definition at line 61 of file prefs.h.

References mName1.

Referenced by KWin4Doc::initPlayers(), and KWin4Doc::loadSettings().

static QString Prefs::name2  )  [inline, static]
 

Get Player 2 name.

Definition at line 71 of file prefs.h.

References mName2.

Referenced by KWin4Doc::loadSettings().

static int Prefs::port  )  [inline, static]
 

Get Network connection port.

Definition at line 21 of file prefs.h.

References mPort.

Prefs * Prefs::self  )  [static]
 

Definition at line 11 of file prefs.cpp.

References mSelf, and Prefs().

Referenced by KWin4App::configureSettings().

Here is the call graph for this function:

static void Prefs::writeConfig  )  [inline, static]
 

Definition at line 107 of file prefs.h.


Member Data Documentation

int Prefs::mColour1 [protected]
 

Definition at line 125 of file prefs.h.

Referenced by colour1(), and Prefs().

QString Prefs::mGamename [protected]
 

Definition at line 118 of file prefs.h.

Referenced by gamename(), and Prefs().

QString Prefs::mHost [protected]
 

Definition at line 119 of file prefs.h.

Referenced by host(), and Prefs().

int Prefs::mInput1 [protected]
 

Definition at line 123 of file prefs.h.

Referenced by input1(), and Prefs().

int Prefs::mInput2 [protected]
 

Definition at line 124 of file prefs.h.

Referenced by input2(), and Prefs().

int Prefs::mLevel [protected]
 

Definition at line 120 of file prefs.h.

Referenced by level(), and Prefs().

QString Prefs::mName1 [protected]
 

Definition at line 121 of file prefs.h.

Referenced by name1(), and Prefs().

QString Prefs::mName2 [protected]
 

Definition at line 122 of file prefs.h.

Referenced by name2(), and Prefs().

int Prefs::mPort [protected]
 

Definition at line 117 of file prefs.h.

Referenced by port(), and Prefs().

Prefs * Prefs::mSelf = 0 [static, protected]
 

Definition at line 113 of file prefs.h.

Referenced by Prefs(), self(), and ~Prefs().


The documentation for this class was generated from the following files:
Generated on Sun Mar 4 10:56:43 2007 for KWin4 by  doxygen 1.4.6