parley
abstractbackendmode.cpp
Go to the documentation of this file.
19 AbstractBackendMode::AbstractBackendMode(const PracticeOptions& practiceOptions, Practice::AbstractFrontend* frontend, QObject *parent)
31 m_frontend->setQuestion(m_current->entry()->translation(m_practiceOptions.languageFrom())->text());
32 m_frontend->setSolution(m_current->entry()->translation(m_practiceOptions.languageTo())->text());
33 m_frontend->setQuestionSound(m_current->entry()->translation(m_practiceOptions.languageFrom())->soundUrl());
34 m_frontend->setSolutionSound(m_current->entry()->translation(m_practiceOptions.languageTo())->soundUrl());
35 m_frontend->setQuestionPronunciation(m_current->entry()->translation(m_practiceOptions.languageFrom())->pronunciation());
36 m_frontend->setSolutionPronunciation(m_current->entry()->translation(m_practiceOptions.languageTo())->pronunciation());
48 KEduVocTranslation* translation = m_current->entry()->translation(m_practiceOptions.languageTo());
49 kDebug() << "Update Grades Default Implementation: " << m_frontend->resultState() << " for " << translation->text()
63 kDebug() << "new grade: " << m_current->entry()->translation(m_practiceOptions.languageTo())->grade();
Definition: practiceoptions.h:22
virtual void setQuestion(const QVariant &question)=0
AbstractBackendMode(const PracticeOptions &practiceOptions, AbstractFrontend *frontend, QObject *parent)
Definition: abstractbackendmode.cpp:19
virtual void setSolution(const QVariant &solution)=0
AbstractFrontend * m_frontend
Definition: abstractbackendmode.h:83
virtual void setQuestionPronunciation(const QString &pronunciationText)=0
virtual void updateGrades()
Change the grades for the current entry.
Definition: abstractbackendmode.cpp:46
virtual bool setTestEntry(TestEntry *current)
start practicing a new word.
Definition: abstractbackendmode.cpp:27
virtual void setSolutionSound(const KUrl &soundUrl)=0
Definition: abstractfrontend.h:25
virtual grade_t currentGradeForEntry()
The grade of the current entry - this has an default implementation to return the grade for the curre...
Definition: abstractbackendmode.cpp:41
PracticeOptions m_practiceOptions
Definition: abstractbackendmode.h:82
virtual void setQuestionSound(const KUrl &soundUrl)=0
virtual void setSolutionPronunciation(const QString &pronunciationText)=0
Definition: testentry.h:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.