moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kwordquiz / src / paukerreader.h
blob5d3606906ed12a8caee2e5271ec6b32b491ea6ea
1 #ifndef PAUKERITEM_H
2 #define PAUKERITEM_H
4 /* This file is part of KWordQuiz
5 Copyright (C) 2004 Peter Hedlund <peter@peterandlinda.com>
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License version 2 as published by the Free Software Foundation.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.
22 #include <qdom.h>
23 #include <qvaluelist.h>
25 class PaukerDataItem
27 public:
28 PaukerDataItem();
29 PaukerDataItem(QDomElement &entry);
30 virtual ~PaukerDataItem();
32 QString frontSide() const;
33 QString backSide() const;
35 protected:
36 QString getText(const QString &tagName) const;
38 private:
39 QDomElement domElement;
42 typedef QValueList<PaukerDataItem> PaukerDataItemList;
44 class PaukerData
46 public:
47 PaukerData();
48 PaukerDataItemList parse(const QString &fileName);
49 int colWidth(int col);
50 int numRows();
51 QString language(int col);
53 private:
54 QDomDocument* document;
57 #endif