kgameconnectdialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __KGAMECONNECTDIALOG_H__
00022 #define __KGAMECONNECTDIALOG_H__
00023
00024 #include <kdialogbase.h>
00025
00026 class KGameConnectDialogPrivate;
00027 class KGameConnectWidgetPrivate;
00028
00029 class KGameConnectWidget : public QWidget
00030 {
00031 Q_OBJECT
00032 public:
00033 KGameConnectWidget(QWidget* parent);
00034 virtual ~KGameConnectWidget();
00035
00039 void setHost(const QString& host);
00040
00045 QString host() const;
00046
00050 void setPort(unsigned short int port);
00051
00055 unsigned short int port() const;
00056
00061 void setDefault(int state);
00062
00063 protected slots:
00068 void slotTypeChanged(int);
00069
00070 signals:
00071 void signalNetworkSetup();
00072 void signalServerTypeChanged(int);
00073
00074 private:
00075 KGameConnectWidgetPrivate* d;
00076
00077 };
00078
00088 class KGameConnectDialog : public KDialogBase
00089 {
00090 Q_OBJECT
00091 public:
00092 KGameConnectDialog(QWidget* parent = 0,int buttonmask=Ok|Cancel);
00093 virtual ~KGameConnectDialog();
00094
00105 static int initConnection(unsigned short int& port, QString& host, QWidget* parent, bool server = false);
00106
00110 void setHost(const QString& host);
00111
00116 QString host() const;
00117
00121 void setPort(unsigned short int port);
00122
00126 unsigned short int port() const;
00127
00132 void setDefault(int state);
00133
00134 signals:
00135 void signalNetworkSetup();
00136
00137 private:
00138 KGameConnectDialogPrivate* d;
00139 };
00140
00141 #endif
This file is part of the documentation for libkdegames Library Version 3.2.2.