New colors, Graphs button removed
[scorecard] / src / xml-dom-parser.h
1 /*
2  * Copyright (C) 2009 Sakari Poussa
3  *
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.
7  */
8
9 #ifndef XML_DOM_PARSER_H
10 #define XML_DOM_PARSER_H
11
12 #include <QDomDocument>
13 #include "data.h"
14
15 class ScoreXmlHandler
16 {
17  public:
18   ScoreXmlHandler(QList<Score *> &list);
19   int parse(QString &fileName);
20   int save(QString &fileName);
21
22  private:
23   QDomDocument doc;
24   QDomElement root;
25   QList<Score *> &list;
26 };
27
28 class ClubXmlHandler
29 {
30  public:
31   ClubXmlHandler(QList<Club *> &list);
32   int parse(QString &fileName);
33   int save(QString &fileName);
34
35  private:
36   QDomDocument doc;
37   QDomElement root;
38   QList<Club *> &list;
39 };
40
41 #endif