2 * Copyright (C) 2009 Sakari Poussa
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, version 2.
13 #include <QXmlDefaultHandler>
17 class ScoreHandler : public QXmlDefaultHandler
20 ScoreHandler(QList<Score *> &scoreList);
24 bool startElement(const QString &namespaceURI, const QString &localName,
25 const QString &qName, const QXmlAttributes &attributes);
26 bool endElement(const QString &namespaceURI, const QString &localName,
27 const QString &qName);
28 bool fatalError(const QXmlParseException &exception);
29 QString errorString() const;
32 QList<Score *> &scoreList;
39 class ClubHandler : public QXmlDefaultHandler
42 ClubHandler(QList<Club *> &clubList);
46 bool startElement(const QString &namespaceURI, const QString &localName,
47 const QString &qName, const QXmlAttributes &attributes);
48 bool endElement(const QString &namespaceURI, const QString &localName,
49 const QString &qName);
50 bool fatalError(const QXmlParseException &exception);
51 QString errorString() const;
54 QList<Club *> &clubList;