KGameDialogMsgServerConfig Class Reference

#include <kgamedialogconfig.h>

Inheritance diagram for KGameDialogMsgServerConfig:

Inheritance graph
[legend]
Collaboration diagram for KGameDialogMsgServerConfig:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KGameDialogMsgServerConfig (QWidget *parent=0)
virtual ~KGameDialogMsgServerConfig ()
virtual void submitToKGame (KGame *, KPlayer *)
 Called by KGameDialog to submit all settings to the KGame Object.
void setHasMsgServer (bool)
virtual void setKGame (KGame *g)
 The KGame object of the dialog has been changed.
virtual void setAdmin (bool)
 The admin status has been changed.

Protected Slots

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

Protected Member Functions

void removeClient (Q_UINT32 id)

Detailed Description

Definition at line 277 of file kgamedialogconfig.h.


Constructor & Destructor Documentation

KGameDialogMsgServerConfig::KGameDialogMsgServerConfig QWidget *  parent = 0  ) 
 

Definition at line 391 of file kgamedialogconfig.cpp.

References KGameDialogMsgServerConfigPrivate::localLayout, and KGameDialogMsgServerConfigPrivate::senderLayout.

KGameDialogMsgServerConfig::~KGameDialogMsgServerConfig  )  [virtual]
 

Definition at line 401 of file kgamedialogconfig.cpp.


Member Function Documentation

void KGameDialogMsgServerConfig::removeClient Q_UINT32  id  )  [protected]
 

Definition at line 473 of file kgamedialogconfig.cpp.

void KGameDialogMsgServerConfig::setAdmin bool   )  [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 478 of file kgamedialogconfig.cpp.

References KGameDialogConfig::admin(), KGameDialogMsgServerConfigPrivate::changeAdmin, KGameDialogMsgServerConfigPrivate::changeMaxClients, KGameDialogMsgServerConfigPrivate::noAdmin, KGameDialogMsgServerConfigPrivate::removeClient, KGameDialogMsgServerConfigPrivate::senderLayout, KGameDialogConfig::setAdmin(), slotChangeAdmin(), slotChangeMaxClients(), and slotRemoveClient().

Referenced by setKGame().

Here is the call graph for this function:

void KGameDialogMsgServerConfig::setHasMsgServer bool   ) 
 

Definition at line 518 of file kgamedialogconfig.cpp.

References KGameDialogMsgServerConfigPrivate::localLayout, and KGameDialogMsgServerConfigPrivate::noMaster.

Referenced by setKGame().

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 407 of file kgamedialogconfig.cpp.

References KGameDialogConfig::game(), setAdmin(), setHasMsgServer(), and KGameDialogConfig::setKGame().

Here is the call graph for this function:

void KGameDialogMsgServerConfig::slotChangeAdmin  )  [protected, slot]
 

Definition at line 457 of file kgamedialogconfig.cpp.

References KGameDialogConfig::admin(), KGameNetwork::electAdmin(), and KGameDialogConfig::game().

Referenced by setAdmin().

void KGameDialogMsgServerConfig::slotChangeMaxClients  )  [protected, slot]
 

Definition at line 422 of file kgamedialogconfig.cpp.

References KGameDialogConfig::game(), and KGameNetwork::setMaxClients().

Referenced by setAdmin().

void KGameDialogMsgServerConfig::slotRemoveClient  )  [protected, slot]
 

Definition at line 453 of file kgamedialogconfig.cpp.

Referenced by setAdmin().

virtual void KGameDialogMsgServerConfig::submitToKGame KGame ,
KPlayer
[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 284 of file kgamedialogconfig.h.


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