File indexing completed on 2024-04-21 03:50:58
0001 /* 0002 SPDX-FileCopyrightText: 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net> 0003 SPDX-FileCopyrightText: 2014 Inge Wallin <inge@lysator.liu.se> 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef COLLECTION_H 0008 #define COLLECTION_H 0009 0010 // Qt 0011 #include <QObject> 0012 0013 // keduvocdocument library 0014 #include <KEduVocDocument> 0015 0016 // Parley 0017 #include "testentry.h" 0018 0019 struct WordCount; 0020 0021 class Collection : public QObject 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit Collection(QUrl *url, QObject *parent = nullptr); 0027 ~Collection() override; 0028 0029 KEduVocDocument *eduVocDocument(); 0030 void numDueWords(WordCount &wc); 0031 0032 private: 0033 // The contents of the document 0034 KEduVocDocument *m_doc; 0035 QList<TestEntry *> m_allTestEntries; 0036 }; 0037 0038 #endif