File indexing completed on 2022-12-06 18:52:28

0001 /*
0002     SPDX-FileCopyrightText: 2004 Sebastian Stein <seb.kde@hpfsc.de>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef EXERCISEBASE_H
0008 #define EXERCISEBASE_H
0009 
0010 #define _CHECK_TASK 0
0011 #define _NEXT_TASK  1
0012 
0013 #include <QWidget>
0014 
0015 /*! Constructs a QWidget.
0016  *
0017  * It is the base class for showing the different exercises.
0018  *
0019  *  \author Sebastian Stein
0020  * */
0021 class ExerciseBase : public QWidget
0022 {
0023     Q_OBJECT
0024 public:
0025     /** constructor */
0026     explicit ExerciseBase(QWidget * parent = nullptr);
0027 
0028     /** destructor */
0029     ~ExerciseBase() override;
0030 
0031     /** force the creation of a new task */
0032     virtual void forceNewTask() = 0;
0033 };
0034 
0035 #endif