• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

parley

  • Practice
  • AbstractFrontend
Public Types | Public Slots | Signals | Public Member Functions | List of all members
Practice::AbstractFrontend Class Referenceabstract

#include <abstractfrontend.h>

Inheritance diagram for Practice::AbstractFrontend:
Inheritance graph
[legend]

Public Types

enum  Mode {
  None, FlashCard, MixedLetters, MultipleChoice,
  Written, Conjugation, Comparison
}
 
enum  ResultState { QuestionState, AnswerCorrect, AnswerSynonym, AnswerWrong }
 

Public Slots

virtual void setBoxes (grade_t currentBox, grade_t newBoxIfCorrect, grade_t newBoxIfWrong)=0
 
virtual void setMode (Mode mode)=0
 
virtual void showQuestion ()=0
 
virtual void showSolution ()=0
 
virtual void showSynonym ()=0
 

Signals

void continueAction ()
 
void hintAction ()
 
void skipAction ()
 
void stopPractice ()
 

Public Member Functions

 AbstractFrontend (QObject *parent=0)
 
virtual ~AbstractFrontend ()
 
virtual ResultState resultState ()=0
 
virtual void setFeedback (const QVariant &feedback)=0
 
virtual void setFeedbackState (ResultState feedbackState)=0
 
virtual void setFinishedWordsTotalWords (int finished, int total)=0
 
virtual void setHint (const QVariant &hint)=0
 
virtual void setLessonName (const QString &lesson)=0
 
virtual void setQuestion (const QVariant &question)=0
 
virtual void setQuestionFont (const QFont &font)=0
 
virtual void setQuestionImage (const KUrl &img)=0
 
virtual void setQuestionPronunciation (const QString &pronunciationText)=0
 
virtual void setQuestionSound (const KUrl &soundUrl)=0
 
virtual void setResultState (ResultState resultState)=0
 
virtual void setSolution (const QVariant &solution)=0
 
virtual void setSolutionFont (const QFont &font)=0
 
virtual void setSolutionImage (const KUrl &img)=0
 
virtual void setSolutionPronunciation (const QString &pronunciationText)=0
 
virtual void setSolutionSound (const KUrl &soundUrl)=0
 
virtual void setSynonym (const QString &entry)=0
 
virtual QVariant userInput ()=0
 

Detailed Description

Definition at line 25 of file abstractfrontend.h.

Member Enumeration Documentation

enum Practice::AbstractFrontend::Mode
Enumerator
None 
FlashCard 
MixedLetters 
MultipleChoice 
Written 
Conjugation 
Comparison 

Definition at line 29 of file abstractfrontend.h.

enum Practice::AbstractFrontend::ResultState
Enumerator
QuestionState 
AnswerCorrect 
AnswerSynonym 
AnswerWrong 

Definition at line 39 of file abstractfrontend.h.

Constructor & Destructor Documentation

AbstractFrontend::AbstractFrontend ( QObject *  parent = 0)

Definition at line 18 of file abstractfrontend.cpp.

virtual Practice::AbstractFrontend::~AbstractFrontend ( )
inlinevirtual

Definition at line 47 of file abstractfrontend.h.

Member Function Documentation

void Practice::AbstractFrontend::continueAction ( )
signal
void Practice::AbstractFrontend::hintAction ( )
signal
virtual ResultState Practice::AbstractFrontend::resultState ( )
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setBoxes ( grade_t  currentBox,
grade_t  newBoxIfCorrect,
grade_t  newBoxIfWrong 
)
pure virtualslot
virtual void Practice::AbstractFrontend::setFeedback ( const QVariant &  feedback)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setFeedbackState ( ResultState  feedbackState)
pure virtual

The feedback state tells the user if the currently entered word is correct (independent of whether the word is counted as correct)

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setFinishedWordsTotalWords ( int  finished,
int  total 
)
pure virtual

The status such as lesson or number of words has changed.

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setHint ( const QVariant &  hint)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setLessonName ( const QString &  lesson)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setMode ( Mode  mode)
pure virtualslot

switch between different modes such as written, flash card, etc

virtual void Practice::AbstractFrontend::setQuestion ( const QVariant &  question)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setQuestionFont ( const QFont &  font)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setQuestionImage ( const KUrl &  img)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setQuestionPronunciation ( const QString &  pronunciationText)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setQuestionSound ( const KUrl &  soundUrl)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setResultState ( ResultState  resultState)
pure virtual

The result state indicated whether a word is counted as correct (and grades are raised) and can be changed by the user.

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setSolution ( const QVariant &  solution)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setSolutionFont ( const QFont &  font)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setSolutionImage ( const KUrl &  img)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setSolutionPronunciation ( const QString &  pronunciationText)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setSolutionSound ( const KUrl &  soundUrl)
pure virtual

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::setSynonym ( const QString &  entry)
pure virtual

set a new synonym that should be shown

Implemented in Practice::GuiFrontend.

virtual void Practice::AbstractFrontend::showQuestion ( )
pure virtualslot

enter question mode - the user is asked to provide the solution

virtual void Practice::AbstractFrontend::showSolution ( )
pure virtualslot

enter show solution mode - the solution is shown

virtual void Practice::AbstractFrontend::showSynonym ( )
pure virtualslot

show the synonyms

void Practice::AbstractFrontend::skipAction ( )
signal
void Practice::AbstractFrontend::stopPractice ( )
signal

request to stop practicing

virtual QVariant Practice::AbstractFrontend::userInput ( )
pure virtual

Enables access to the input of the user.

This is queried by the backend when it needs to evaluate the input.

Implemented in Practice::GuiFrontend.


The documentation for this class was generated from the following files:
  • abstractfrontend.h
  • abstractfrontend.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal