moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / klatin / klatin / keduvocdata.h
blobb2ceec844798bef967c389b01aa911e8d65e4777
1 /* This file is part of the KDE Edu Library
2 Copyright (C) 2002 Scott Wheeler <wheeler@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 Boston, MA 02111-1307, USA.
19 #ifndef KEDUVOCDATA_H
20 #define KEDUVOCDATA_H
22 #include <qdom.h>
24 class KEduVocDataItem
26 public:
27 KEduVocDataItem();
28 KEduVocDataItem(QDomElement &entry);
29 virtual ~KEduVocDataItem();
31 QString originalText() const;
32 QString translatedText() const;
34 protected:
35 QString getText(const QString &tagName) const;
37 private:
38 QDomElement domElement;
41 typedef QValueList<KEduVocDataItem> KEduVocDataItemList;
43 class KEduVocData
45 public:
46 static KEduVocDataItemList parse(const QString &fileName);
49 #endif // KEDUVOCDATA_H