21#ifndef GRADECALCULATOR_H
22#define GRADECALCULATOR_H
25#include "ClassManager.h"
26#include "global/ISettings.h"
27#include "validator/IExerciseValidator.h"
34 Q_PROPERTY(
IExerciseValidator *validator READ validator WRITE setValidator NOTIFY validatorChanged)
44 void setTargetHitsPerMinute(
int newTargetHitsPerMinute);
46 void setUseNetHitsForGrading(
bool newUseNetHitsForGrading);
48 void setGradingMethod(const
ClassManager::GradingMethod &newGradingMethod);
49 const QString &
grade(
void) const;
54 int m_targetHitsPerMinute = 0;
55 bool m_useNetHitsForGrading = true;
60 void validatorChanged();
61 void targetHitsPerMinuteChanged();
62 void useNetHitsForGradingChanged();
63 void gradingMethodChanged();
The ClassManager class provides access to grading configuration of each class.
Definition ClassManager.h:36
The GradeCalculator class provides methods for grades.
Definition GradeCalculator.h:31
ClassManager::GradingMethod gradingMethod
Definition GradeCalculator.h:37
void updateGrade(void)
Definition GradeCalculator.cpp:115
bool useNetHitsForGrading
Definition GradeCalculator.h:36
int targetHitsPerMinute
Definition GradeCalculator.h:35
QString grade
Definition GradeCalculator.h:38
Definition IExerciseValidator.h:30
Definition ISettings.h:31