summaryrefslogtreecommitdiffstats
path: root/kanagram/src/leitnerbox.cpp
diff options
context:
space:
mode:
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;
+}
+