KGameConnectDialog Class Reference
Dialog to ask for host and port. More...
#include <kgameconnectdialog.h>
Signals | |
void | signalNetworkSetup () |
Public Member Functions | |
KGameConnectDialog (QWidget *parent=0, int buttonmask=Ok|Cancel) | |
void | setHost (const QString &host) |
QString | host () const |
void | setPort (unsigned short int port) |
unsigned short int | port () const |
void | setDefault (int state) |
Static Public Member Functions | |
int | initConnection (unsigned short int &port, QString &host, QWidget *parent, bool server=false) |
Detailed Description
Dialog to ask for host and port.This Dialog is used to create a game. You call initConnection(port, QString::null, parent, true) to create a network game (as a server) or initConnection(port, host, parent) to join a network game.
- Author:
- Andreas Beckermann <b_mann@gmx.de>
Definition at line 88 of file kgameconnectdialog.h.
Member Function Documentation
|
Shows a dialog to either connect to an existing game or to create a server game, depending on user's choice.
References host(), port(), setDefault(), setHost(), and setPort(). |
|
Referenced by initConnection(). |
|
Referenced by initConnection(). |
|
Referenced by initConnection(). |
|
Referenced by initConnection(). |
|
Specifies which state is the default (0 = server game; 1 = join game).
Referenced by initConnection(). |
The documentation for this class was generated from the following files: