blob: 4161b784b0d55bdf70ed8ab42c350d55af57f6d9 (
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 <[email protected]>, (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 TQString& LeitnerBox::getBoxName() const
{
return m_name;
}
LeitnerBox* LeitnerBox::getCorrectWordBox()
{
return m_correctWordBox;
}
LeitnerBox* LeitnerBox::getWrongWordBox()
{
return m_wrongWordBox;
}
void LeitnerBox::setBoxName( const TQString& 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;
}
|