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

libkdegames/kgame

KGameConnectWidget Class Reference

#include <kgameconnectdialog.h>

Inheritance diagram for KGameConnectWidget:

Inheritance graph
[legend]

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)

Constructor & Destructor Documentation

KGameConnectWidget::KGameConnectWidget ( QWidget *  parent  )  [explicit]

Definition at line 61 of file kgameconnectdialog.cpp.

KGameConnectWidget::~KGameConnectWidget (  )  [virtual]

Definition at line 178 of file kgameconnectdialog.cpp.


Member Function Documentation

void KGameConnectWidget::setHost ( const QString &  host  ) 

Parameters:
host The host to connect to by default

Definition at line 198 of file kgameconnectdialog.cpp.

QString KGameConnectWidget::host (  )  const

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

Definition at line 184 of file kgameconnectdialog.cpp.

void KGameConnectWidget::setPort ( unsigned short int  port  ) 

Parameters:
port The port that will be shown by default

Definition at line 203 of file kgameconnectdialog.cpp.

unsigned short int KGameConnectWidget::port (  )  const

Returns:
The port to connect to / to listen

Definition at line 193 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 208 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.

Definition at line 130 of file kgameconnectdialog.cpp.

QString KGameConnectWidget::type (  )  const

Returns:
service type

Definition at line 164 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 154 of file kgameconnectdialog.cpp.

QString KGameConnectWidget::gameName (  )  const

Returns:
game name.

Definition at line 159 of file kgameconnectdialog.cpp.

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

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

Definition at line 218 of file kgameconnectdialog.cpp.

void KGameConnectWidget::slotGamesFound (  )  [protected, slot]

Definition at line 140 of file kgameconnectdialog.cpp.

void KGameConnectWidget::slotGameSelected ( int  nr  )  [protected, slot]

Definition at line 169 of file kgameconnectdialog.cpp.

void KGameConnectWidget::signalNetworkSetup (  )  [signal]

void KGameConnectWidget::signalServerTypeChanged ( int   )  [signal]


The documentation for this class was generated from the following files:
  • kgameconnectdialog.h
  • kgameconnectdialog.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