File indexing completed on 2024-11-03 03:48:10
0001 /* 0002 <one line to give the program's name and a brief idea of what it does.> 0003 Copyright (C) <year> <name of author> 0004 0005 This program is free software; you can redistribute it and/or modify 0006 it under the terms of the GNU General Public License as published by 0007 the Free Software Foundation; either either version 2 0008 of the License, or (at your option) any later version.of the License, or 0009 (at your option) any later version. 0010 0011 This program is distributed in the hope that it will be useful, 0012 but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 GNU General Public License for more details. 0015 0016 You should have received a copy of the GNU General Public License along 0017 with this program; if not, write to the Free Software Foundation, Inc., 0018 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 0019 */ 0020 0021 #ifndef KSIRK_NEWPLAYERDATA_H 0022 #define KSIRK_NEWPLAYERDATA_H 0023 0024 #include <QString> 0025 0026 namespace Ksirk { 0027 0028 class NewPlayerData 0029 { 0030 public: 0031 NewPlayerData(const QString& name, const QString& nation, const QString& password, bool computer, 0032 bool network); 0033 virtual ~NewPlayerData() {} 0034 0035 inline const QString& name() const {return m_name;} 0036 inline void setName(const QString& name) {m_name = name;} 0037 0038 inline const QString& nation() const {return m_nation;} 0039 inline void setNation(const QString& nation) {m_nation = nation;} 0040 0041 inline const QString& password() const {return m_password;} 0042 inline void setPassword(const QString& password) {m_password = password;} 0043 0044 inline bool computer() const {return m_computer;} 0045 inline void setComputer(bool computer) {m_computer = computer;} 0046 0047 inline bool network() const {return m_network;} 0048 inline void setNetwork(bool network) {m_network = network;} 0049 0050 private: 0051 QString m_name; 0052 QString m_nation; 0053 QString m_password; 0054 bool m_computer; 0055 bool m_network; 0056 }; 0057 0058 } 0059 0060 #endif // KSIRK_NEWPLAYERDATA_H 0061 // kate: indent-mode cstyle; space-indent on; indent-width 0;