blob: 159e0deeba2b96c09df820aac0d5e4a27a5922a5 (
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
|
#include "CardPack_mock.h"
void CardPackMock::addStudyRecord(const QString cardId, const StudyRecord& studyRecord)
{
studyRecords.insert(cardId, studyRecord);
}
QList<StudyRecord> CardPackMock::getStudyRecords(QString cardId) const
{
return studyRecords.values(cardId);
}
StudyRecord CardPackMock::getStudyRecord(QString cardId) const
{
return studyRecords.values(cardId).first();
}
QList<DicRecord*> CardPackMock::getRecords() const
{
return QList<DicRecord*>();
}
const Field* CardPackMock::getQuestionField() const
{
return NULL;
}
QList<const Field*> CardPackMock::getAnswerFields() const
{
return QList<const Field*>();
}
|