summaryrefslogtreecommitdiffstats
path: root/kanagram/src/leitnerbox.cpp
blob: 5a86d1fbb7cfaa7b813e52c8ac7f5506e8eb313d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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;
}