blob: 9c8e4a2d86473233748f7f8da6e65c0f7bf1265f (
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
|
#ifndef ICARDPACK_H
#define ICARDPACK_H
#include <QString>
#include <QList>
#include "../study/StudyRecord.h"
class DicRecord;
class Field;
class ICardPack
{
public:
static const QString SynonymDelimiter;
static const QString HomonymDelimiter;
public:
virtual ~ICardPack() {}
virtual void addStudyRecord(const QString aCardId,
const StudyRecord& aStudyRecord) = 0;
virtual QList<StudyRecord> getStudyRecords(QString cardId) const = 0;
virtual StudyRecord getStudyRecord(QString cardId) const = 0;
virtual QList<DicRecord*> getRecords() const = 0;
virtual const Field* getQuestionField() const = 0;
virtual QList<const Field*> getAnswerFields() const = 0;
QString getQuestionFieldName() const;
QStringList getAnswerFieldNames() const;
};
#endif
|