summaryrefslogtreecommitdiffstats
path: root/kanagram/src/leitnerbox.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch)
treed3bb9f5d25a2dc09ca81adecf39621d871534297 /kanagram/src/leitnerbox.cpp
downloadtdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz
tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip
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
Diffstat (limited to 'kanagram/src/leitnerbox.cpp')
-rw-r--r--kanagram/src/leitnerbox.cpp70
1 files changed, 70 insertions, 0 deletions
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 <martin-pfeiffer-bensheim@web.de>, (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;
+}
+