21 #ifndef __KGAMECONNECTDIALOG_H__
22 #define __KGAMECONNECTDIALOG_H__
24 #include <kdialogbase.h>
26 class KGameConnectDialogPrivate;
27 class KGameConnectWidgetPrivate;
29 class KGameConnectWidget :
public TQWidget
34 KGameConnectWidget(TQWidget* parent);
35 virtual ~KGameConnectWidget();
40 void setHost(
const TQString& host);
46 TQString host()
const;
51 void setPort(
unsigned short int port);
56 unsigned short int port()
const;
62 void setDefault(
int state);
70 void setType(
const TQString& type);
75 TQString type()
const;
82 void setName(
const TQString& name);
87 TQString gameName()
const;
94 void slotTypeChanged(
int);
95 void slotGamesFound();
96 void slotGameSelected(
int);
99 void signalNetworkSetup();
100 void signalServerTypeChanged(
int);
103 void showDnssdControls();
104 KGameConnectWidgetPrivate* d;
135 static int initConnection(
unsigned short int&
port, TQString&
host, TQWidget* parent,
bool server =
false);
146 TQString
host()
const;
156 unsigned short int port()
const;
165 void signalNetworkSetup();
168 KGameConnectDialogPrivate* d;
Dialog to ask for host and port.
static int initConnection(unsigned short int &port, TQString &host, TQWidget *parent, bool server=false)
Shows a dialog to either connect to an existing game or to create a server game, depending on user's ...
void setHost(const TQString &host)
unsigned short int port() const
void setDefault(int state)
Specifies which state is the default (0 = server game; 1 = join game)
void setPort(unsigned short int port)