File indexing completed on 2024-04-21 03:51:07

0001 /*
0002     SPDX-FileCopyrightText: 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
0003     SPDX-FileCopyrightText: 2005-2007 Peter Hedlund <peter.hedlund@kdemail.net>
0004     SPDX-FileCopyrightText: 2007-2010 Frederik Gladhorn <gladhorn@kde.org>
0005     SPDX-FileCopyrightText: 2014 Inge Wallin <inge@lysator.liu.se>
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef PRACTICESESSIONMANAGERCONTINUOUS_H
0010 #define PRACTICESESSIONMANAGERCONTINUOUS_H
0011 
0012 #include "sessionmanagerbase.h"
0013 
0014 // Qt
0015 #include <QVector>
0016 
0017 // kdeedulibs
0018 #include <KEduVocExpression>
0019 
0020 // Parley
0021 #include "prefs.h"
0022 #include "testentry.h"
0023 
0024 class KEduVocDocument;
0025 
0026 namespace Practice
0027 {
0028 class SessionManagerContinuous : public SessionManagerBase
0029 {
0030 public:
0031     /**
0032      * Create a collection of entries to be practiced.
0033      */
0034     explicit SessionManagerContinuous(QWidget *parent);
0035 
0036     /**
0037      * destructor
0038      */
0039     ~SessionManagerContinuous() override;
0040 
0041     /**
0042      * Prepare for practice using the entries in this document.
0043      */
0044     void setDocument(KEduVocDocument *doc) override;
0045 
0046     /**
0047      * Initialize the lists of entries that will be used in the
0048      * training from the full set of available entries.
0049      */
0050     void initializeTraining() override;
0051 
0052     // Not reimplemented.  The default version does what is needed.
0053     // virtual TestEntry* nextTrainingEntry();
0054 
0055 private: // data
0056          // The default data in the base class is enough for us.
0057 };
0058 
0059 }
0060 
0061 #endif // include guard