• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkdegames/kgame

KGameDialogMsgServerConfig Class Reference

#include <KGameDialogConfig>

Inheritance diagram for KGameDialogMsgServerConfig:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 285 of file kgamedialogconfig.h.


Public Member Functions

 KGameDialogMsgServerConfig (QWidget *parent=0)
virtual void setAdmin (bool admin)
void setHasMsgServer (bool)
virtual void setKGame (KGame *g)
virtual void submitToKGame (KGame *g, KPlayer *p)
virtual ~KGameDialogMsgServerConfig ()

Protected Slots

void slotChangeAdmin ()
void slotChangeMaxClients ()
void slotRemoveClient ()

Protected Member Functions

void removeClient (quint32 id)

Constructor & Destructor Documentation

KGameDialogMsgServerConfig::KGameDialogMsgServerConfig ( QWidget *  parent = 0  ) 

Definition at line 399 of file kgamedialogconfig.cpp.

KGameDialogMsgServerConfig::~KGameDialogMsgServerConfig (  )  [virtual]

Definition at line 413 of file kgamedialogconfig.cpp.


Member Function Documentation

void KGameDialogMsgServerConfig::removeClient ( quint32  id  )  [protected]

Definition at line 487 of file kgamedialogconfig.cpp.

void KGameDialogMsgServerConfig::setAdmin ( bool  admin  )  [virtual]

The admin status has been changed.

If the KGame object of this config widget is the admin the user is allowed to configure it. Otherwise most widgets will have to be disabled. Note that you don't necessarily need to deactivate all widget - e.g. the player name must be configured by the player. Mainly the KGame configuration can be done by the admin only.

By default this does nothing. Changes the value for admin so don't forget to call the default implementation in derived classes!

Parameters:
admin Whether the KGame object of this dialog can be configured

Reimplemented from KGameDialogConfig.

Definition at line 492 of file kgamedialogconfig.cpp.

void KGameDialogMsgServerConfig::setHasMsgServer ( bool  has  ) 

Definition at line 532 of file kgamedialogconfig.cpp.

void KGameDialogMsgServerConfig::setKGame ( KGame *  g  )  [virtual]

The KGame object of the dialog has been changed.

The default implementation changes the pointer for game so don't forget to call the default implementation if you overwrite this!

You can use this e.g. to re-read the min/max player settings.

Parameters:
g The KGame object

Reimplemented from KGameDialogConfig.

Definition at line 419 of file kgamedialogconfig.cpp.

void KGameDialogMsgServerConfig::slotChangeAdmin (  )  [protected, slot]

Definition at line 471 of file kgamedialogconfig.cpp.

void KGameDialogMsgServerConfig::slotChangeMaxClients (  )  [protected, slot]

Definition at line 434 of file kgamedialogconfig.cpp.

void KGameDialogMsgServerConfig::slotRemoveClient (  )  [protected, slot]

Definition at line 467 of file kgamedialogconfig.cpp.

virtual void KGameDialogMsgServerConfig::submitToKGame ( KGame *  g,
KPlayer *  p 
) [inline, virtual]

Called by KGameDialog to submit all settings to the KGame Object.

You have to replace this if you add your own widgets!

Parameters:
g A pointer to your KGame.
p A pointer to the player owning this dialog

Implements KGameDialogConfig.

Definition at line 292 of file kgamedialogconfig.h.


The documentation for this class was generated from the following files:
  • kgamedialogconfig.h
  • kgamedialogconfig.cpp

libkdegames/kgame

Skip menu "libkdegames/kgame"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal