KGameConnectWidget Class Reference

List of all members.

Detailed Description

Definition at line 29 of file kgameconnectdialog.h.


Signals

void signalNetworkSetup ()
void signalServerTypeChanged (int)

Public Member Functions

 KGameConnectWidget (QWidget *parent)
virtual ~KGameConnectWidget ()
void setHost (const QString &host)
QString host () const
void setPort (unsigned short int port)
unsigned short int port () const
void setDefault (int state)
void setType (const QString &type)
QString type () const
void setName (const QString &name)
QString gameName () const

Protected Slots

void slotTypeChanged (int)
void slotGamesFound ()
void slotGameSelected (int)

Member Function Documentation

void KGameConnectWidget::setHost ( const QString &  host  ) 

Parameters:
host The host to connect to by default

Definition at line 177 of file kgameconnectdialog.cpp.

QString KGameConnectWidget::host (  )  const

Returns:
The host to connect to or QString::null if the user wants to be the MASTER

Definition at line 163 of file kgameconnectdialog.cpp.

void KGameConnectWidget::setPort ( unsigned short int  port  ) 

Parameters:
port The port that will be shown by default

Definition at line 182 of file kgameconnectdialog.cpp.

unsigned short int KGameConnectWidget::port (  )  const

Returns:
The port to connect to / to listen

Definition at line 172 of file kgameconnectdialog.cpp.

void KGameConnectWidget::setDefault ( int  state  ) 

Specifies which state is the default (0 = server game; 1 = join game).

Parameters:
state The default state. 0 For a server game, 1 to join a game

Definition at line 187 of file kgameconnectdialog.cpp.

void KGameConnectWidget::setType ( const QString &  type  ) 

Sets DNS-SD service type, both for publishing and browsing.

Parameters:
type Service type (something like _kwin4._tcp). It should be unique for application.
Since:
3.4

Definition at line 110 of file kgameconnectdialog.cpp.

QString KGameConnectWidget::type (  )  const

Returns:
service type

Definition at line 143 of file kgameconnectdialog.cpp.

void KGameConnectWidget::setName ( const QString &  name  ) 

Set game name for publishing.

Parameters:
name Game name. Important only for server mode. If not set hostname will be used. In case of name conflict -2, -3 and so on will be added to name.

Definition at line 133 of file kgameconnectdialog.cpp.

QString KGameConnectWidget::gameName (  )  const

Returns:
game name.

Definition at line 138 of file kgameconnectdialog.cpp.

void KGameConnectWidget::slotTypeChanged ( int   )  [protected, slot]

The type has changed, ie the user switched between creating or joining.

Definition at line 193 of file kgameconnectdialog.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys