libkdegames/kgame
KGameConnectWidget Class Reference
#include <KGameConnectWidget>

Detailed Description
Definition at line 32 of file kgameconnectdialog.h.
Signals | |
| void | signalNetworkSetup () |
| void | signalServerTypeChanged (int) |
Public Member Functions | |
| QString | gameName () const |
| QString | host () const |
| KGameConnectWidget (QWidget *parent) | |
| unsigned short int | port () const |
| void | setDefault (int state) |
| void | setHost (const QString &host) |
| void | setName (const QString &name) |
| void | setPort (unsigned short int port) |
| void | setType (const QString &type) |
| QString | type () const |
| virtual | ~KGameConnectWidget () |
Protected Slots | |
| void | slotGameSelected (int) |
| void | slotGamesFound () |
| void | slotTypeChanged (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
| QString KGameConnectWidget::gameName | ( | ) | const |
| 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.
| unsigned short int KGameConnectWidget::port | ( | ) | const |
| 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::setHost | ( | const QString & | host | ) |
- Parameters:
-
host The host to connect to by default
Definition at line 198 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.
| 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.
| 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.
| void KGameConnectWidget::signalNetworkSetup | ( | ) | [signal] |
| void KGameConnectWidget::signalServerTypeChanged | ( | int | ) | [signal] |
| void KGameConnectWidget::slotGameSelected | ( | int | nr | ) | [protected, slot] |
Definition at line 169 of file kgameconnectdialog.cpp.
| void KGameConnectWidget::slotGamesFound | ( | ) | [protected, slot] |
Definition at line 140 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.
| QString KGameConnectWidget::type | ( | ) | const |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference