The ClassManager class provides access to grading configuration of each class.
More...
#include "grades/internal/ClassManager.h"
|
QList< Class * > | m_classes |
|
QStringList | m_classNames |
|
QJsonDocument | doc |
|
|
static std::shared_ptr< ClassManager > | m_instance = std::make_shared<ClassManager>() |
|
static const QString | nameProperty = "name" |
|
static const QString | descriptionProperty = "description" |
|
static const QString | gradingProperty = "grading" |
|
static const QString | targetHitsProperty = "targetHitsPerMinute" |
|
|
enum | GradingMethod { GradingMethod_Numbers = 0
, GradingMethod_Letters = 1
} |
|
void | classesChanged () |
|
void | classNamesChanged () |
|
The ClassManager class provides access to grading configuration of each class.
- Since
- Open-Typer 5.1.0
◆ classes()
QQmlListProperty< Class > ClassManager::classes |
( |
void |
| ) |
|
|
overridevirtual |
◆ classNames()
QStringList ClassManager::classNames |
( |
void |
| ) |
|
|
overridevirtual |
◆ configLocation()
QString ClassManager::configLocation |
( |
| ) |
|
|
private |
Returns the path to the class grading configuration JSON file.
◆ createNewClass()
void ClassManager::createNewClass |
( |
void |
| ) |
|
|
overridevirtual |
Creates a new class and adds it to the list of classes.
Implements IClassManager.
◆ init()
void ClassManager::init |
( |
| ) |
|
◆ instance()
◆ removeClass()
void ClassManager::removeClass |
( |
Class * |
classPtr | ) |
|
|
overridevirtual |
◆ setClasses()
void ClassManager::setClasses |
( |
QList< Class * > |
newClasses | ) |
|
|
overridevirtual |
◆ targetHitsPerMinute() [1/2]
int ClassManager::targetHitsPerMinute |
( |
int |
selectedClass | ) |
|
|
overridevirtual |
Returns target hits per minute based on the given class and current month.
Implements IClassManager.
◆ targetHitsPerMinute() [2/2]
int ClassManager::targetHitsPerMinute |
( |
void |
| ) |
|
|
overridevirtual |
Returns target hits per minute based on selected class and current month.
Implements IClassManager.
◆ write()
void ClassManager::write |
( |
void |
| ) |
|
|
private |
Writes all classes into the configuration file.
◆ classes
QQmlListProperty< Class > ClassManager::classes |
|
read |
◆ classNames
QStringList ClassManager::classNames |
|
read |
The documentation for this class was generated from the following files:
- src/grades/internal/ClassManager.h
- src/grades/internal/ClassManager.cpp