2
* Copyright 2007-2008 Thomas Gallinari <tg8187@yahoo.fr>
3
* Copyright 2007-2008 Nathalie Liesse <nathalie.liesse@gmail.com>
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License as
7
* published by the Free Software Foundation; either version 2 of
8
* the License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef KAPMANPARSER_H
20
#define KAPMANPARSER_H
24
#include <QXmlDefaultHandler>
27
* @brief This class handles XML reader events in order to initialize the Maze properties.
29
class KapmanParser : public QXmlDefaultHandler {
33
/** The Game to initialize */
36
/** The parser's buffer */
39
/** The rows counter */
44
* Creates a new GameParser.
45
* @param p_game the Game to initialize
47
KapmanParser(Game* p_game);
50
* Deletes the GameParser instance.
55
* Implement QXmlDefaultHandler::characters
57
bool characters(const QString & ch );
60
* Implements QXmlDefaultHandler::startElement()
62
bool startElement(const QString&, const QString&, const QString& p_qName, const QXmlAttributes& p_atts);
65
* Implements QXmlDefaultHandler::endElement()
67
bool endElement(const QString &, const QString &, const QString & p_qName );