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);
140 void setHost(
const TQString& host);
146 TQString host()
const;
151 void setPort(
unsigned short int port);
156 unsigned short int port()
const;
162 void setDefault(
int state);
165 void signalNetworkSetup();
168 KGameConnectDialogPrivate* d;
Dialog to ask for host and port.