summaryrefslogtreecommitdiff
path: root/src/study/StudyFileWriter.h
blob: 88008466152d849835e1754640f6dda6dc8e40d7 (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
#ifndef STUDYFILEWRITER_H
#define STUDYFILEWRITER_H

#include <QXmlStreamWriter>
#include <QString>
#include <QList>

#include "StudyRecord.h"

class Dictionary;
class CardPack;

class StudyFileWriter : public QXmlStreamWriter
{
public:
    StudyFileWriter( const Dictionary* aDict );
    bool write( QIODevice* aDevice );

private:
    void writePack( const CardPack* aPack );
    void writeCard(const QString& aCardId, const CardPack* aPack );
private:
    const Dictionary* m_dict;
};

#endif // STUDYFILEWRITER_H