libkdegames Library API Documentation

kgameconnectdialog.h

00001 /* 00002 This file is part of the KDE games library 00003 Copyright (C) 2001 Martin Heni (martin@heni-online.de) 00004 Copyright (C) 2001 Andreas Beckermann (b_mann@gmx.de) 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License version 2 as published by the Free Software Foundation. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00018 Boston, MA 02111-1307, USA. 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
KDE Logo
This file is part of the documentation for libkdegames Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Aug 26 00:21:39 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003