File indexing completed on 2024-04-28 07:39:30

0001 /*
0002     SPDX-FileCopyrightText: 2014 Inge Wallin <inge@lysator.liu.se>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef PRACTICESESSIONMANAGERFIXED_H
0007 #define PRACTICESESSIONMANAGERFIXED_H
0008 
0009 #include "sessionmanagerbase.h"
0010 
0011 // Parley
0012 #include "prefs.h"
0013 #include "testentry.h"
0014 
0015 namespace Practice
0016 {
0017 /**
0018  * This class handles a session of a fixed size. Special features include:
0019  *  - at most x (default: 5) new words every session
0020  *  - entries with higher grades are prioritized.
0021  */
0022 class SessionManagerFixed : public SessionManagerBase
0023 {
0024 public:
0025     /**
0026      * Create a collection of entries to be practiced.
0027      */
0028     explicit SessionManagerFixed(QWidget *parent);
0029 
0030     /**
0031      * destructor
0032      */
0033     ~SessionManagerFixed() override;
0034 
0035     /**
0036      * Initialize the lists of entries that will be used in the
0037      * training from the full set of available entries.
0038      */
0039     void initializeTraining() override;
0040 
0041     // Not reimplemented.  The default version does what is needed.
0042     // virtual TestEntry* nextTrainingEntry();
0043 
0044 private: // data
0045          // The default data in the base class is enough for us.
0046 };
0047 
0048 }
0049 
0050 #endif // include guard