From ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kanagram/src/leitnerbox.cpp | 70 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 kanagram/src/leitnerbox.cpp (limited to 'kanagram/src/leitnerbox.cpp') diff --git a/kanagram/src/leitnerbox.cpp b/kanagram/src/leitnerbox.cpp new file mode 100644 index 00000000..5a86d1fb --- /dev/null +++ b/kanagram/src/leitnerbox.cpp @@ -0,0 +1,70 @@ +// +// C++ Implementation: leitnerbox +// +// Description: +// +// +// Author: Martin Pfeiffer , (C) 2005 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#include "leitnerbox.h" + +LeitnerBox::LeitnerBox() +{ +} + + +LeitnerBox::~LeitnerBox() +{ +} + +int LeitnerBox::getVocabCount() +{ + return m_vocabCount; +} + +void LeitnerBox::setVocabCount( int count ) +{ + m_vocabCount = count; +} + +const QString& LeitnerBox::getBoxName() const +{ + return m_name; +} + +LeitnerBox* LeitnerBox::getCorrectWordBox() +{ + return m_correctWordBox; +} + +LeitnerBox* LeitnerBox::getWrongWordBox() +{ + return m_wrongWordBox; +} + +void LeitnerBox::setBoxName( const QString& name ) +{ + m_name = name; +} + +void LeitnerBox::setCorrectWordBox( LeitnerBox* correctWordBox ) +{ + m_correctWordBox = correctWordBox; +} + +void LeitnerBox::setWrongWordBox( LeitnerBox* wrongWordBox ) +{ + m_wrongWordBox = wrongWordBox; +} + +bool LeitnerBox::operator ==( const LeitnerBox& a ) const +{ + if( a.getBoxName() == getBoxName() ) + return true; + else + return false; +} + -- cgit v1.2.1