SVN_SILENT made messages (.desktop file)
[kdegames.git] / ksirk / ksirkskineditor / nationality.cpp
blob564d596bc5e6c993d24812a323fc65801b735ba1
1 /***************************************************************************
2 nationality.cpp - description
3 -------------------
4 begin : sam ao 31 2002
5 copyright : (C) 2002 by Gael de Chalendar
6 email : Gael.de.Chalendar@free.fr
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 * 02110-1301, USA
20 ***************************************************************************/
22 #include "nationality.h"
24 namespace KsirkSkinEditor
27 Nationality::Nationality(const QString &myName, const QString &myFlag,
28 const QString& leaderName) :
29 m_name(myName), m_leaderName(leaderName), m_flagFileName(myFlag)
33 void Nationality::saveXml(QTextStream& xmlStream)
35 QString name = m_name;
36 name = name.replace("&","&");
37 name = name.replace("<","&lt;");
38 name = name.replace(">","&gt;");
39 xmlStream << "<nationality name=\"" << name << "\" flag=\"" << m_flagFileName << "\" />";