#include <kgamedialogconfig.h>
Inheritance diagram for KGameDialogNetworkConfig:


Signals | |
| void | signalServerTypeChanged (int) |
| This signal is emmited if the user changes the server type (client/server) in the network configuration dialog. | |
Public Member Functions | |
| KGameDialogNetworkConfig (QWidget *parent=0) | |
| virtual | ~KGameDialogNetworkConfig () |
| void | disableInitConnection () |
| virtual void | submitToKGame (KGame *g, KPlayer *p) |
| Called by KGameDialog to submit all settings to the KGame Object. | |
| virtual void | setKGame (KGame *g) |
| The KGame object of the dialog has been changed. | |
| void | setDefaultNetworkInfo (const QString &host, unsigned short int port, bool server=true) |
| This sets the default port and host used in KGameConnectDialog. | |
| void | setDiscoveryInfo (const QString &type, const QString &name=QString::null) |
| Set service type that will be published or browsed for and game name that will be displayed in server browser. | |
Protected Slots | |
| void | slotInitConnection () |
| void | slotExitConnection () |
| void | slotConnectionBroken () |
Protected Member Functions | |
| void | setConnected (bool connected, bool master=false) |
Definition at line 211 of file kgamedialogconfig.h.
|
|
Definition at line 119 of file kgamedialogconfig.cpp. References KGameDialogNetworkConfigPrivate::mConnect, KGameDialogNetworkConfigPrivate::mDisconnectButton, KGameDialogNetworkConfigPrivate::mInitConnection, KGameDialogNetworkConfigPrivate::mNetworkLabel, setConnected(), setDefaultNetworkInfo(), signalServerTypeChanged(), slotExitConnection(), and slotInitConnection(). Here is the call graph for this function: ![]() |
|
|
Definition at line 149 of file kgamedialogconfig.cpp. |
|
|
|
|
||||||||||||
|
Definition at line 197 of file kgamedialogconfig.cpp. References KGameDialogNetworkConfigPrivate::mDisconnectButton, KGameDialogNetworkConfigPrivate::mInitConnection, and KGameDialogNetworkConfigPrivate::mNetworkLabel. Referenced by KGameDialogNetworkConfig(), setKGame(), slotConnectionBroken(), and slotExitConnection(). |
|
||||||||||||||||
|
This sets the default port and host used in KGameConnectDialog. The user will be able to change these defaults! If you don't call this then host "localhost" and port "0" is used. You are strongly encouraged to change at least the port!
Definition at line 228 of file kgamedialogconfig.cpp. References KGameDialogNetworkConfigPrivate::mConnect, KGameDialogNetworkConfigPrivate::mDefaultHost, KGameDialogNetworkConfigPrivate::mDefaultPort, KGameDialogNetworkConfigPrivate::mDefaultServer, KGameConnectWidget::setDefault(), KGameConnectWidget::setHost(), and KGameConnectWidget::setPort(). Referenced by KGameDialogNetworkConfig(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Set service type that will be published or browsed for and game name that will be displayed in server browser. Without this publishing and discovery of LAN servers will not be enabled.
Definition at line 243 of file kgamedialogconfig.cpp. References KGameDialogNetworkConfigPrivate::mConnect, KGameConnectWidget::setName(), and KGameConnectWidget::setType(). Here is the call graph for this function: ![]() |
|
|
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.
Reimplemented from KGameDialogConfig. Definition at line 218 of file kgamedialogconfig.cpp. References KGameDialogConfig::game(), setConnected(), and KGameDialogConfig::setKGame(). Here is the call graph for this function: ![]() |
|
|
This signal is emmited if the user changes the server type (client/server) in the network configuration dialog.
Referenced by KGameDialogNetworkConfig(). |
|
|
Definition at line 190 of file kgamedialogconfig.cpp. References setConnected(). |
|
|
Definition at line 155 of file kgamedialogconfig.cpp. References KGameNetwork::disconnect(), KGameDialogConfig::game(), and setConnected(). Referenced by KGameDialogNetworkConfig(). |
|
|
Definition at line 162 of file kgamedialogconfig.cpp. References KGameDialogConfig::game(), KGameConnectWidget::gameName(), KGameConnectWidget::host(), KGameDialogNetworkConfigPrivate::mConnect, KGameNetwork::offerConnections(), KGameConnectWidget::port(), KGameNetwork::setDiscoveryInfo(), and KGameConnectWidget::type(). Referenced by KGameDialogNetworkConfig(). |
|
||||||||||||
|
Called by KGameDialog to submit all settings to the KGame Object. You have to replace this if you add your own widgets!
Implements KGameDialogConfig. Definition at line 214 of file kgamedialogconfig.cpp. |
1.4.6