File indexing completed on 2024-04-21 04:04:03

0001 /***************************************************************************
0002                           kdialogsetupjoueur.h  -  description
0003                              -------------------
0004     begin                : Thu Jul 19 2001
0005     copyright            : (C) 2001 by Gaƫl de Chalendar
0006     email                : Gael.de.Chalendar@free.fr
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *   This program is free software; you can redistribute it and/or modify  *
0012  *   it under the terms of the GNU General Public License as published by  *
0013  *   the Free Software Foundation; either either version 2
0014    of the License, or (at your option) any later version.of the License, or     *
0015  *   (at your option) any later version.                                   *
0016  *                                                                         *
0017  *   You should have received a copy of the GNU General Public License
0018  *   along with this program; if not, write to the Free Software
0019  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
0020  *   02110-1301, USA
0021  ***************************************************************************/
0022 
0023 #ifndef JOINGAMEDIALOG_H
0024 #define JOINGAMEDIALOG_H
0025 
0026 #include "ui_joingame.h"
0027 
0028 #include <QDialog>
0029 
0030 
0031 namespace Ksirk
0032 {
0033 
0034 /**
0035   * This is the implementation of the player configuration dialog made with
0036   * QT Designer
0037   * @author Gael de Chalendar
0038   */
0039 class JoinGameDialog : public QDialog, public Ui::JoinGameDialog
0040 {
0041   Q_OBJECT
0042 public:
0043   JoinGameDialog(QString& host,
0044                  int& port,
0045                  QWidget *parent=nullptr);
0046   
0047   ~JoinGameDialog() override;
0048 
0049 protected:
0050   void accept() override;
0051   void reject() override;
0052   
0053 private:
0054   QString &m_host;
0055   int& m_port;
0056 };
0057 
0058 }
0059 
0060 #endif // KPLAYERSETUPDIALOG_H